Skip to main content

zstd_sequences

Function zstd_sequences 

Source
pub fn zstd_sequences(
    s: Sequences<'_>,
) -> Result<(usize, usize, [u32; 3]), SeqError>
Expand description

Decodes and executes a zstd block’s sequences (RFC 8878 section 3.1.1.3.2 and 3.1.1.4). Returns the end of the output written (the remaining literals after the last sequence are left to the caller) and the repeat offsets; the bytes after the end up to the slack are garbage. Same results as simoom-compress’s safe execute.

§Panics

If the preconditions on Sequences do not hold (they are checked on entry).