#[repr(C)]pub struct Header { /* private fields */ }
Expand description
The file header.
Implementations§
Source§impl Header
impl Header
Sourcepub fn new(
id_type: IdType,
content_type: Ecc,
table_count: u32,
chunk_count: u32,
) -> Self
pub fn new( id_type: IdType, content_type: Ecc, table_count: u32, chunk_count: u32, ) -> Self
Create a new instance.
Sourcepub fn with(
magic: Ecc,
version: Version,
id_type: u32,
content_type: Ecc,
table_count: u32,
chunk_count: u32,
) -> Self
pub fn with( magic: Ecc, version: Version, id_type: u32, content_type: Ecc, table_count: u32, chunk_count: u32, ) -> Self
Create a new instance with the given data.
Sourcepub fn content_type(&self) -> Ecc
pub fn content_type(&self) -> Ecc
Get the content type of the container.
Sourcepub fn is_native_endian(&self) -> bool
pub fn is_native_endian(&self) -> bool
What’s the endian?
Sourcepub fn table_count(&self) -> u32
pub fn table_count(&self) -> u32
Get the table count.
Sourcepub fn chunk_count(&self) -> u32
pub fn chunk_count(&self) -> u32
Get the chunk count.
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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