pub struct File {Show 14 fields
pub name: String,
pub volume: u8,
pub offset: u32,
pub file_code: FourCC,
pub creator_code: FourCC,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub finder_flags: FinderFlags,
pub crc32: u32,
pub flags: Flags,
pub rsrc_uncompressed_size: u32,
pub data_uncompressed_size: u32,
pub rsrc_compressed_size: u32,
pub data_compressed_size: u32,
}Expand description
File entry
Fields§
§name: String§volume: u8Volume number (meaning not entirely clear)
offset: u32Offset to file data from beginning of file
file_code: FourCCMac OS file type code
creator_code: FourCCMac OS file creator code
created_at: DateTime<Utc>Creation date in classic Mac OS format (seconds since 1904)
modified_at: DateTime<Utc>Modification date in classic Mac OS format (seconds since 1904)
finder_flags: FinderFlagsMac OS Finder flags
crc32: u32Uncompressed file data CRC.
The value is calculated by concatenating the resource and data forks.
flags: FlagsFile flags
rsrc_uncompressed_size: u32Length of uncompressed resource fork in bytes
data_uncompressed_size: u32Length of uncompressed data fork in bytes
rsrc_compressed_size: u32Byte-length of compressed resource data in the archive
data_compressed_size: u32Byte-length of compressed data-fork data in the archive
Trait Implementations§
Source§impl BinRead for File
impl BinRead for File
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 ReadEndian for File
impl ReadEndian for File
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
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