fn decodeAlloc(allocator: Allocator, src: []const u8, verify_checksum: bool, window_size_max: usize) error{DictionaryIdFlagUnsupported, MalformedFrame, OutOfMemory}![]u8

Decodes a stream of frames from src; returns the decoded bytes. The stream should not have extra trailing bytes - either all bytes in src will be decoded, or an error will be returned.

Errors returned:

  • error.DictionaryIdFlagUnsupported if a src contains a frame that uses a dictionary
  • error.MalformedFrame if a frame in src is invalid
  • error.OutOfMemory if allocator cannot allocate enough memory

Parameters

allocator: Allocator,
src: []const u8,
verify_checksum: bool,
window_size_max: usize,