Struct smash_arc::DirectoryOffset
source · #[repr(packed(1))]pub struct DirectoryOffset {
pub offset: u64,
pub decomp_size: u32,
pub size: u32,
pub file_start_index: u32,
pub file_count: u32,
pub directory_index: u32,
}
Expand description
Also known as MassLoadingData
Fields§
§offset: u64
§decomp_size: u32
§size: u32
§file_start_index: u32
FileData index if using DirInfo.path.index(), FileInfo if redirected from a DirectoryOffset.directory_index
file_count: u32
§directory_index: u32
This can be a DirInfo OR a DirectoryOffset index, depending on the flags of the matching DirInfo. Considering checking the tests in lookups.rs for an example.
Implementations§
Trait Implementations§
source§impl BinRead for DirectoryOffset
impl BinRead for DirectoryOffset
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_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_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§fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self
from the reader, assuming little-endian byte order, using
the given arguments. Read moresource§impl Clone for DirectoryOffset
impl Clone for DirectoryOffset
source§fn clone(&self) -> DirectoryOffset
fn clone(&self) -> DirectoryOffset
Returns a copy 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 moresource§impl Debug for DirectoryOffset
impl Debug for DirectoryOffset
impl Copy for DirectoryOffset
Auto Trait Implementations§
impl RefUnwindSafe for DirectoryOffset
impl Send for DirectoryOffset
impl Sync for DirectoryOffset
impl Unpin for DirectoryOffset
impl UnwindSafe for DirectoryOffset
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