pub struct Wdb5Header {
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 layout_hash: u32,
pub min_id: u32,
pub max_id: u32,
pub locale: u32,
pub flags: u16,
pub id_index: u16,
}Expand description
WDB5 header (Mists of Pandaria)
Fields§
§magic: [u8; 4]The magic signature, should be “WDB5”
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
layout_hash: u32Layout hash
min_id: u32Min ID
max_id: u32Max ID
locale: u32Locale
flags: u16Flags
id_index: u16ID index
Implementations§
Source§impl Wdb5Header
impl Wdb5Header
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 WDB5 file
Trait Implementations§
Source§impl Clone for Wdb5Header
impl Clone for Wdb5Header
Source§fn clone(&self) -> Wdb5Header
fn clone(&self) -> Wdb5Header
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 Wdb5Header
impl Debug for Wdb5Header
Source§impl PartialEq for Wdb5Header
impl PartialEq for Wdb5Header
impl Copy for Wdb5Header
impl Eq for Wdb5Header
impl StructuralPartialEq for Wdb5Header
Auto Trait Implementations§
impl Freeze for Wdb5Header
impl RefUnwindSafe for Wdb5Header
impl Send for Wdb5Header
impl Sync for Wdb5Header
impl Unpin for Wdb5Header
impl UnwindSafe for Wdb5Header
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