fn decode(dest: []u8, src: []const u8, verify_checksum: bool) error{MalformedFrame, UnknownContentSizeUnsupported, DictionaryIdFlagUnsupported}!usize

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 a src contains a frame that uses a dictionary
  • error.MalformedFrame if a frame in src is invalid
  • error.UnknownContentSizeUnsupported if a frame in src does not declare its content size

Parameters

dest: []u8,
src: []const u8,
verify_checksum: bool,