fn decodeZstandardFrameArrayList(allocator: Allocator, dest: *field_call, src: []const u8, verify_checksum: bool, window_size_max: usize) error{OutOfMemory} || FrameContext.Error || FrameError!usize
[src]
Decode a Zstandard from from src
and return number of bytes read; see decodeZstandardFrame()
. The first four bytes of src
must be the magic number for a Zstandard frame.
Errors returned:
error.WindowSizeUnknown
if the frame does not have a valid window sizeerror.WindowTooLarge
if the window size is larger thanwindow_size_max
error.DictionaryIdFlagUnsupported
if the frame uses a dictionaryerror.ContentSizeTooLarge
if the frame header indicates a content size that is larger thanstd.math.maxInt(usize)
error.ChecksumFailure
ifverify_checksum
is true and the frame contains a checksum that does not match the checksum of the decompressed dataerror.ReservedBitSet
if the reserved bit of the frame header is seterror.EndOfStream
ifsrc
does not contain a complete frameerror.OutOfMemory
ifallocator
cannot allocate enough memory- an error in
block.Error
if there are errors decoding a block error.BadContentSize
if the content size declared by the frame does not equal the size of decompressed data
Parameters
allocator: Allocator,
dest: *field_call,
src: []const u8,
verify_checksum: bool,
window_size_max: usize,