pub struct DbcHeader {
pub magic: [u8; 4],
pub record_count: u32,
pub field_count: u32,
pub record_size: u32,
pub string_block_size: u32,
}Expand description
Represents a DBC file header
Fields§
§magic: [u8; 4]The magic signature, should be “WDBC”
record_count: u32Number of records in the file
field_count: u32Number of fields in each record
record_size: u32Size of each record in bytes
string_block_size: u32Size of the string block in bytes
Implementations§
Source§impl DbcHeader
impl DbcHeader
Sourcepub fn string_block_offset(&self) -> u64
pub fn string_block_offset(&self) -> u64
Calculates the offset to the string block
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
Calculates the total size of the DBC file
Trait Implementations§
impl Copy for DbcHeader
impl Eq for DbcHeader
impl StructuralPartialEq for DbcHeader
Auto Trait Implementations§
impl Freeze for DbcHeader
impl RefUnwindSafe for DbcHeader
impl Send for DbcHeader
impl Sync for DbcHeader
impl Unpin for DbcHeader
impl UnwindSafe for DbcHeader
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