#[repr(C, align(16))]pub struct Table { /* private fields */ }
Expand description
A table entry in the file format. Tables are 48 bytes in length when stored.
Implementations§
Source§impl Table
impl Table
Sourcepub fn identifier(&self) -> Identifier
pub fn identifier(&self) -> Identifier
Get the table identifier.
Sourcepub fn metadata_length(&self) -> u64
pub fn metadata_length(&self) -> u64
Get the metadata length.
Sourcepub fn metadata_length_mut(&mut self) -> &mut u64
pub fn metadata_length_mut(&mut self) -> &mut u64
Get the metadata length mutably
Sourcepub fn metadata_offset(&self) -> u64
pub fn metadata_offset(&self) -> u64
Get the metadata offset in the file. This is an absolute offset within the file, i.e. zero based.
Sourcepub fn metadata_offset_mut(&mut self) -> &mut u64
pub fn metadata_offset_mut(&mut self) -> &mut u64
Get the metadata offset mutably.
Sourcepub fn offset(&mut self, data_length: u64, chunk_count: u32)
pub fn offset(&mut self, data_length: u64, chunk_count: u32)
Helper to collapse tables into parents.
Sourcepub fn child_count(&self) -> u32
pub fn child_count(&self) -> u32
Get the child table count.
Sourcepub fn sibling(&self) -> u32
pub fn sibling(&self) -> u32
Get the index offset from this entry to its sibling. Zero if there is no sibling.
Sourcepub fn sibling_mut(&mut self) -> &mut u32
pub fn sibling_mut(&mut self) -> &mut u32
Get the sibling index mutably.
Sourcepub fn chunk_index(&self) -> u32
pub fn chunk_index(&self) -> u32
Get the index of the first chunk owned by this table.
Sourcepub fn chunk_count(&self) -> u32
pub fn chunk_count(&self) -> u32
Get the number of chunks owned by this table.
Trait Implementations§
impl Copy for Table
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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