pub fn decode_chunk(
chunk_type: ChunkType,
chunk_content: Vec<u8>,
) -> Result<CafChunk, CafError>
Expand description
Decodes an in-memory chunk given its type and content
If the given chunk type is not not supported, the function will
return CafError::UnsupportedChunkType
in this case.