pub struct Directory {Show 19 fields
pub version: u8,
pub unknown1: u8,
pub header_len: u16,
pub unknown2: u8,
pub flags: EntryFlags,
pub creation_date: DateTime<Utc>,
pub modification_date: DateTime<Utc>,
pub previous_entry_offset: u32,
pub next_entry_offset: u32,
pub directory_entry_offset: u32,
pub file_name_len: u16,
pub header_crc: u16,
pub data_uncompressed_len: u32,
pub data_compressed_len: u32,
pub data_crc: u16,
pub unknown3: u16,
pub child_count: u32,
pub real_dir: Option<RealDirectory>,
pub first_child_offset: u64,
}Expand description
A directory entry in v5 archives
Fields§
§version: u8§unknown1: u8§header_len: u16§unknown2: u8§flags: EntryFlags§creation_date: DateTime<Utc>§modification_date: DateTime<Utc>§previous_entry_offset: u32Offset of previous entry on the same level
next_entry_offset: u32Offset of next entry on the same level
directory_entry_offset: u32Offset to parent directory entry
file_name_len: u16§header_crc: u16§data_uncompressed_len: u32§data_compressed_len: u32§data_crc: u16§unknown3: u16§child_count: u32§real_dir: Option<RealDirectory>§first_child_offset: u64Implementations§
Source§impl Directory
impl Directory
pub fn finder_flags(&self) -> FinderFlags
pub fn comment(&self) -> &str
pub fn file_name(&self) -> &str
pub fn file_code(&self) -> FourCC
pub fn creator_code(&self) -> FourCC
pub fn checksum(&self, fork: Fork) -> u16
pub fn compressed_size(&self, fork: Fork) -> usize
pub fn uncompressed_size(&self, fork: Fork) -> usize
pub fn algorithm(&self, fork: Fork) -> Algorithm
pub fn offset(&self, fork: Fork) -> u64
pub fn uses_encryption(&self) -> bool
Trait Implementations§
Source§impl BinRead for Directory
impl BinRead for Directory
Source§type Args<'__binrw_generated_args_lifetime> = DirectoryBinReadArgs
type Args<'__binrw_generated_args_lifetime> = DirectoryBinReadArgs
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_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 ReadEndian for Directory
impl ReadEndian for Directory
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directory
impl UnwindSafe for Directory
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