pub struct ArchiveHeader {Show 14 fields
pub copyright_year: FourCC,
pub unknown: [u8; 2],
pub version: Version,
pub flags: ArchiveFlags,
pub total_archive_size: u32,
pub catalog_offset: u32,
pub entry_count: u16,
pub archive_header_crc: u16,
pub checksum_valid: bool,
pub reserved: Option<[u8; 14]>,
pub hash: Option<[u8; 5]>,
pub unknown_items: Vec<Unknown>,
pub comment: Vec<u8>,
pub padding: Vec<u8>,
}Expand description
Header at the start of the an archive
Fields§
§copyright_year: FourCC§unknown: [u8; 2]§version: Version§flags: ArchiveFlags§total_archive_size: u32§catalog_offset: u32§entry_count: u16§archive_header_crc: u16§checksum_valid: boolTODO: Actually check crc
reserved: Option<[u8; 14]>§hash: Option<[u8; 5]>§unknown_items: Vec<Unknown>§comment: Vec<u8>§padding: Vec<u8>Implementations§
Source§impl ArchiveHeader
impl ArchiveHeader
pub fn first_entry_offset(&self) -> u64
Trait Implementations§
Source§impl BinRead for ArchiveHeader
impl BinRead for ArchiveHeader
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 Debug for ArchiveHeader
impl Debug for ArchiveHeader
Source§impl ReadEndian for ArchiveHeader
impl ReadEndian for ArchiveHeader
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
The endianness of the type.
Auto Trait Implementations§
impl Freeze for ArchiveHeader
impl RefUnwindSafe for ArchiveHeader
impl Send for ArchiveHeader
impl Sync for ArchiveHeader
impl Unpin for ArchiveHeader
impl UnwindSafe for ArchiveHeader
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