Skip to main content

decode

Function decode 

Source
pub fn decode<S: SampleSink>(
    encoding: u8,
    data: &[u8],
    sink: &mut S,
) -> Result<DecodeOutcome>
Expand description

Decodes a chunk body (encoding byte already stripped).

Uses DecodeLimits::default(); call decode_with_limits to widen or tighten the caps, e.g. for hostile input or for a block known to contain very wide histograms.