pub struct FileHeader {Show 15 fields
pub header_crc: u16,
pub header_size: u16,
pub header_type: u8,
pub header_flags: u16,
pub packed_size: u64,
pub original_size: u64,
pub datetime: DosDateTime,
pub attributes: u32,
pub crc32: u32,
pub compression_type: CompressionType,
pub compression_quality: CompressionQuality,
pub parameters: u16,
pub filename: String,
pub comment: Vec<u8>,
pub data_offset: u64,
}Expand description
ACE file entry header
Fields§
§header_crc: u16§header_size: u16§header_type: u8§header_flags: u16§packed_size: u64§original_size: u64§datetime: DosDateTime§attributes: u32§crc32: u32§compression_type: CompressionType§compression_quality: CompressionQuality§parameters: u16§filename: String§comment: Vec<u8>§data_offset: u64File data offset in the archive
Implementations§
Source§impl FileHeader
impl FileHeader
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Check if entry is a directory
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Check if entry is encrypted
Sourcepub fn is_continued_from_prev(&self) -> bool
pub fn is_continued_from_prev(&self) -> bool
Check if entry continues from previous volume
Sourcepub fn is_continued_to_next(&self) -> bool
pub fn is_continued_to_next(&self) -> bool
Check if entry continues to next volume
Sourcepub fn dictionary_size(&self) -> usize
pub fn dictionary_size(&self) -> usize
Get dictionary size in bytes
Trait Implementations§
Source§impl Clone for FileHeader
impl Clone for FileHeader
Source§fn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
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 moreAuto Trait Implementations§
impl Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnsafeUnpin for FileHeader
impl UnwindSafe for FileHeader
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