Skip to main content

lzss_unpack_lenient

Function lzss_unpack_lenient 

Source
pub fn lzss_unpack_lenient(src: &[u8]) -> Result<Vec<u8>>
Expand description

Decompress Siglus LZSS but be tolerant about the declared arc_size.

The original engine does not always hard-fail on mismatched arc_size. Instead, it will typically decode until either:

  • the output reaches org_size, or
  • the input stream ends.

We still require the final output length to match org_size.