pub struct FileHeaderV2 {
pub patch_type: [u8; 4],
pub entry_files: u32,
}Expand description
FHDR v2 body: minimal patch metadata from older patch files.
Version 2 headers appear in early FFXIV patch files. They carry only the patch type tag and an entry-file count; the extended statistics present in v3 are absent.
After the two fields listed here, the wire format includes 8 trailing zero bytes that the parser intentionally ignores.
See lib/FFXIVQuickLauncher/.../Chunk/FileHeaderChunk.cs (the ReadChunk
method, version ≠ 3 branch).
Fields§
§patch_type: [u8; 4]4-byte ASCII patch type tag, e.g. b"D000" for a game-data patch or
b"H000" for a boot/header patch.
entry_files: u32Number of SqPack entry files referenced by this patch.
This is an informational counter; the patcher does not use it to pre-allocate or validate anything at apply time.
Trait Implementations§
Source§impl BinRead for FileHeaderV2
impl BinRead for FileHeaderV2
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 FileHeaderV2
impl Clone for FileHeaderV2
Source§fn clone(&self) -> FileHeaderV2
fn clone(&self) -> FileHeaderV2
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 FileHeaderV2
impl Debug for FileHeaderV2
Source§impl PartialEq for FileHeaderV2
impl PartialEq for FileHeaderV2
Source§fn eq(&self, other: &FileHeaderV2) -> bool
fn eq(&self, other: &FileHeaderV2) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReadEndian for FileHeaderV2
impl ReadEndian for FileHeaderV2
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl Eq for FileHeaderV2
impl StructuralPartialEq for FileHeaderV2
Auto Trait Implementations§
impl Freeze for FileHeaderV2
impl RefUnwindSafe for FileHeaderV2
impl Send for FileHeaderV2
impl Sync for FileHeaderV2
impl Unpin for FileHeaderV2
impl UnsafeUnpin for FileHeaderV2
impl UnwindSafe for FileHeaderV2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more