fn decodeZstandardHeader(source: anytype) @TypeOf(source).Error || error{EndOfStream, ReservedBitSet}!ZstandardHeader

Decode the header of a Zstandard frame.

Errors returned:

  • error.ReservedBitSet if any of the reserved bits of the header are set
  • error.EndOfStream if source does not contain a complete header

Parameters

source: anytype,