pub struct Wdb2Header {
pub magic: [u8; 4],
pub record_count: u32,
pub field_count: u32,
pub record_size: u32,
pub string_block_size: u32,
pub table_hash: u32,
pub build: u32,
}Expand description
WDB2 header (The Burning Crusade)
Fields§
§magic: [u8; 4]The magic signature, should be “WDB2”
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
table_hash: u32Table hash
build: u32Build number
Implementations§
Source§impl Wdb2Header
impl Wdb2Header
Sourcepub fn to_dbc_header(&self) -> DbcHeader
pub fn to_dbc_header(&self) -> DbcHeader
Convert to a standard DBC header
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 WDB2 file
Trait Implementations§
Source§impl Clone for Wdb2Header
impl Clone for Wdb2Header
Source§fn clone(&self) -> Wdb2Header
fn clone(&self) -> Wdb2Header
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Wdb2Header
impl Debug for Wdb2Header
Source§impl PartialEq for Wdb2Header
impl PartialEq for Wdb2Header
impl Copy for Wdb2Header
impl Eq for Wdb2Header
impl StructuralPartialEq for Wdb2Header
Auto Trait Implementations§
impl Freeze for Wdb2Header
impl RefUnwindSafe for Wdb2Header
impl Send for Wdb2Header
impl Sync for Wdb2Header
impl Unpin for Wdb2Header
impl UnwindSafe for Wdb2Header
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