Skip to main content

decode_chunk

Function decode_chunk 

Source
pub fn decode_chunk(data: &[u8]) -> Result<ChunkData, DecodeError>
Expand description

Decompresses and decodes a chunk into its full model. Objects take more memory decoded than encoded, so the model of a 16 MiB record can be several times its size; verification checks objects as they decode instead of building it.

§Errors

Returns an error for anything other than a well-formed record within the encoding’s bounds.