pub struct BTreeV2Header {
pub tree_type: u8,
pub node_size: u32,
pub record_size: u16,
pub depth: u16,
pub root_node_address: u64,
pub num_records_in_root: u16,
pub total_records: u64,
}Expand description
Parsed B-tree v2 header (signature “BTHD”).
Fields§
§tree_type: u8B-tree type: 5=links indexed by name, 6=links indexed by creation order, etc.
node_size: u32Node size in bytes.
record_size: u16Record size in bytes.
depth: u16Depth of the tree (0 = root is a leaf).
root_node_address: u64Address of root node.
num_records_in_root: u16Number of records in the root node.
total_records: u64Total number of records in all nodes.
Implementations§
Source§impl BTreeV2Header
impl BTreeV2Header
Sourcepub fn parse(
file_data: &[u8],
offset: usize,
offset_size: u8,
length_size: u8,
) -> Result<BTreeV2Header, FormatError>
pub fn parse( file_data: &[u8], offset: usize, offset_size: u8, length_size: u8, ) -> Result<BTreeV2Header, FormatError>
Parse a B-tree v2 header at the given offset.
Trait Implementations§
Source§impl Clone for BTreeV2Header
impl Clone for BTreeV2Header
Source§fn clone(&self) -> BTreeV2Header
fn clone(&self) -> BTreeV2Header
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BTreeV2Header
impl RefUnwindSafe for BTreeV2Header
impl Send for BTreeV2Header
impl Sync for BTreeV2Header
impl Unpin for BTreeV2Header
impl UnsafeUnpin for BTreeV2Header
impl UnwindSafe for BTreeV2Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more