Struct nom_mpq::parser::mpq_user_data::MPQUserData
source · pub struct MPQUserData {
pub user_data_size: u32,
pub archive_header_offset: u32,
pub user_data_header_size: u32,
pub content: Vec<u8>,
}
Expand description
The MPQ User Data
Fields§
§user_data_size: u32
The number of bytes that have been allocated for user data.
archive_header_offset: u32
The offset in the file to continue reading the archive header.
user_data_header_size: u32
The block to store user data in.
content: Vec<u8>
The contents of the user data, in Starcraft 2 replay files contains the build information of the game version that created the replay.
Implementations§
source§impl MPQUserData
impl MPQUserData
sourcepub fn parse_user_data_size(input: &[u8]) -> IResult<&[u8], u32>
pub fn parse_user_data_size(input: &[u8]) -> IResult<&[u8], u32>
Offset 0x04
: int32 UserDataSize
The number of bytes that have been allocated in this archive for user data. This does not need to be the exact size of the data itself, but merely the maximum amount of data which may be stored in this archive.
sourcepub fn parse_archive_header_offset(input: &[u8]) -> IResult<&[u8], u32>
pub fn parse_archive_header_offset(input: &[u8]) -> IResult<&[u8], u32>
Offset 0x08
: int32 ArchiveHeaderOffset
The offset in the file at which to continue the search for the archive header.
sourcepub fn parse_user_data_header_size(input: &[u8]) -> IResult<&[u8], u32>
pub fn parse_user_data_header_size(input: &[u8]) -> IResult<&[u8], u32>
Offset 0x0c
: int32 UserDataHeaderSize
The block to store user data in.
Trait Implementations§
source§impl Debug for MPQUserData
impl Debug for MPQUserData
source§impl Default for MPQUserData
impl Default for MPQUserData
source§fn default() -> MPQUserData
fn default() -> MPQUserData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MPQUserData
impl Send for MPQUserData
impl Sync for MPQUserData
impl Unpin for MPQUserData
impl UnwindSafe for MPQUserData
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