pub struct FileHeaderV3 {Show 13 fields
pub patch_type: [u8; 4],
pub entry_files: u32,
pub add_directories: u32,
pub delete_directories: u32,
pub delete_data_size: u64,
pub minor_version: u32,
pub repository_name: u32,
pub commands: u32,
pub sqpk_add_commands: u32,
pub sqpk_delete_commands: u32,
pub sqpk_expand_commands: u32,
pub sqpk_header_commands: u32,
pub sqpk_file_commands: u32,
}Expand description
FHDR v3 body: full patch metadata for modern patch files.
Fields§
§patch_type: [u8; 4]4-byte patch type tag (e.g. b"D000").
entry_files: u32Number of entry files declared in the patch.
add_directories: u32Count of ADIR chunks in the patch.
delete_directories: u32Count of DELD chunks in the patch.
delete_data_size: u64Total bytes that will be removed by SQPK delete commands.
minor_version: u32Minor version number.
repository_name: u32Repository identifier the patch targets.
commands: u32Total command count across all SQPK sub-commands.
sqpk_add_commands: u32Count of SQPK A (add data) commands.
sqpk_delete_commands: u32Count of SQPK D (delete data) commands.
sqpk_expand_commands: u32Count of SQPK E (expand data) commands.
sqpk_header_commands: u32Count of SQPK H (header) commands.
sqpk_file_commands: u32Count of SQPK F (file) commands.
Trait Implementations§
Source§impl BinRead for FileHeaderV3
impl BinRead for FileHeaderV3
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for FileHeaderV3
impl Clone for FileHeaderV3
Source§fn clone(&self) -> FileHeaderV3
fn clone(&self) -> FileHeaderV3
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileHeaderV3
impl Debug for FileHeaderV3
Source§impl PartialEq for FileHeaderV3
impl PartialEq for FileHeaderV3
Source§fn eq(&self, other: &FileHeaderV3) -> bool
fn eq(&self, other: &FileHeaderV3) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReadEndian for FileHeaderV3
impl ReadEndian for FileHeaderV3
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl Eq for FileHeaderV3
impl StructuralPartialEq for FileHeaderV3
Auto Trait Implementations§
impl Freeze for FileHeaderV3
impl RefUnwindSafe for FileHeaderV3
impl Send for FileHeaderV3
impl Sync for FileHeaderV3
impl Unpin for FileHeaderV3
impl UnsafeUnpin for FileHeaderV3
impl UnwindSafe for FileHeaderV3
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