Skip to main content

decompress_fork

Function decompress_fork 

Source
pub fn decompress_fork(archive: &[u8], fork: &ForkInfo) -> Result<Vec<u8>>
Expand description

Decompress one Compact Pro fork (RLE, optionally LZH-fed). The CRC is not checked here — Compact Pro stores one checksum per file covering the resource fork followed by the data fork, so the caller verifies it once both forks are in hand via verify_entry_crc.