pub struct EncodingHeader {
pub magic: [u8; 2],
pub version: u8,
pub ckey_hash_size: u8,
pub ekey_hash_size: u8,
pub ckey_page_size_kb: u16,
pub ekey_page_size_kb: u16,
pub ckey_page_count: u32,
pub ekey_page_count: u32,
pub unk: u8,
pub espec_block_size: u32,
}Expand description
Encoding file header
Fields§
§magic: [u8; 2]Magic bytes “EN”
version: u8Version (should be 1)
ckey_hash_size: u8Hash size for CKeys (usually 16 for MD5)
ekey_hash_size: u8Hash size for EKeys (usually 16 for MD5)
ckey_page_size_kb: u16Page size for CKey pages in KB
ekey_page_size_kb: u16Page size for EKey pages in KB
ckey_page_count: u32Number of CKey pages
ekey_page_count: u32Number of EKey pages
unk: u8Unknown field (must be 0)
espec_block_size: u32ESpec block size
Trait Implementations§
Source§impl Clone for EncodingHeader
impl Clone for EncodingHeader
Source§fn clone(&self) -> EncodingHeader
fn clone(&self) -> EncodingHeader
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 moreAuto Trait Implementations§
impl Freeze for EncodingHeader
impl RefUnwindSafe for EncodingHeader
impl Send for EncodingHeader
impl Sync for EncodingHeader
impl Unpin for EncodingHeader
impl UnwindSafe for EncodingHeader
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