pub struct SqpackFile {
pub main_id: u16,
pub sub_id: u16,
pub file_id: u32,
}Expand description
Identifier of a SqPack file targeted by a SQPK command.
Fields§
§main_id: u16SqPack repository / category ID (main segment of the filename).
sub_id: u16SqPack sub-category ID; the high byte encodes the expansion folder.
file_id: u32Per-file index used to derive the .datN/.indexN suffix.
Trait Implementations§
Source§impl BinRead for SqpackFile
impl BinRead for SqpackFile
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 SqpackFile
impl Clone for SqpackFile
Source§fn clone(&self) -> SqpackFile
fn clone(&self) -> SqpackFile
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 SqpackFile
impl Debug for SqpackFile
Source§impl Hash for SqpackFile
impl Hash for SqpackFile
Source§impl PartialEq for SqpackFile
impl PartialEq for SqpackFile
Source§fn eq(&self, other: &SqpackFile) -> bool
fn eq(&self, other: &SqpackFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ReadEndian for SqpackFile
impl ReadEndian for SqpackFile
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
impl Eq for SqpackFile
impl StructuralPartialEq for SqpackFile
Auto Trait Implementations§
impl Freeze for SqpackFile
impl RefUnwindSafe for SqpackFile
impl Send for SqpackFile
impl Sync for SqpackFile
impl Unpin for SqpackFile
impl UnsafeUnpin for SqpackFile
impl UnwindSafe for SqpackFile
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