pub struct ForkInfo {
pub method: u8,
pub codec: ForkCodec,
pub encrypted: bool,
pub uncompressed_len: u32,
pub compressed_len: u32,
pub crc: u16,
pub crc32: u32,
pub offset: u64,
}Expand description
One fork (data or resource) of a StuffIt or Compact Pro entry.
Fields§
§method: u8StuffIt compression method (low nibble: 0=none, 1=RLE90, 3=Huffman,
13=LZ+Huffman, 15=Arsenic, …). Ignored for ForkCodec::CompactPro.
codec: ForkCodecWhich codec decompresses this fork.
encrypted: boolTrue when the fork is password-encrypted (not supported for extraction).
uncompressed_len: u32Decompressed length in bytes.
compressed_len: u32Compressed length in bytes (as stored in the archive).
crc: u16Stored CRC-16/ARC of the decompressed fork (StuffIt forks only).
crc32: u32Stored CRC-32 of the decompressed fork (Compact Pro forks only).
offset: u64Absolute byte offset of the compressed data within the archive.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForkInfo
impl RefUnwindSafe for ForkInfo
impl Send for ForkInfo
impl Sync for ForkInfo
impl Unpin for ForkInfo
impl UnsafeUnpin for ForkInfo
impl UnwindSafe for ForkInfo
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