fn decodeAlloc(allocator: Allocator, src: []const u8, verify_checksum: bool, window_size_max: usize) error{DictionaryIdFlagUnsupported, MalformedFrame, OutOfMemory}![]u8
[src]
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 asrc
contains a frame that uses a dictionaryerror.MalformedFrame
if a frame insrc
is invaliderror.OutOfMemory
ifallocator
cannot allocate enough memory