fn decode(dest: []u8, src: []const u8, verify_checksum: bool) error{MalformedFrame, UnknownContentSizeUnsupported, DictionaryIdFlagUnsupported}!usize
[src]
Decodes frames from src
into dest
; returns the length of the result. The stream should not have extra trailing bytes - either all bytes in src
will be decoded, or an error will be returned. An error will be returned if a Zstandard frame in src
does not declare its content size.
Errors returned:
error.DictionaryIdFlagUnsupported
if asrc
contains a frame that uses a dictionaryerror.MalformedFrame
if a frame insrc
is invaliderror.UnknownContentSizeUnsupported
if a frame insrc
does not declare its content size