pub struct SitEntry {Show 13 fields
pub name: String,
pub data_fork: Vec<u8>,
pub resource_fork: Vec<u8>,
pub file_type: [u8; 4],
pub creator: [u8; 4],
pub is_folder: bool,
pub data_method: u8,
pub rsrc_method: u8,
pub data_ulen: u32,
pub rsrc_ulen: u32,
pub finder_flags: u16,
pub is_compressed: bool,
pub format: ArchiveFormat,
}Expand description
A single entry (file or folder) in a StuffIt archive.
Each entry can have both a data fork and a resource fork, following the classic Macintosh file system conventions.
By default, entries are stored in compressed form for lazy decompression.
Call decompress() to get the uncompressed data.
Fields§
§name: StringName of the file or folder (may include path separators for nested items).
data_fork: Vec<u8>Data fork content (compressed if is_compressed is true).
resource_fork: Vec<u8>Resource fork content (compressed if is_compressed is true).
file_type: [u8; 4]Macintosh file type code (e.g., b"TEXT", b"APPL").
creator: [u8; 4]Macintosh creator code (e.g., b"ttxt", b"CARO").
is_folder: boolWhether this entry represents a folder.
data_method: u8Compression method used for the data fork.
rsrc_method: u8Compression method used for the resource fork.
data_ulen: u32Uncompressed size of the data fork.
rsrc_ulen: u32Uncompressed size of the resource fork.
finder_flags: u16Macintosh Finder flags (e.g., invisible, has custom icon).
is_compressed: boolWhether the fork data is still compressed (for lazy decompression).
format: ArchiveFormatArchive format (determines which decompressor to use).