fn decodeFrameHeader(source: anytype) @TypeOf(source).Error || HeaderError!FrameHeader

Returns the header of the frame at the beginning of source.

Errors returned:

  • error.BadMagic if source begins with bytes not equal to the Zstandard frame magic number, or outside the range of magic numbers for skippable frames.
  • error.EndOfStream if source contains fewer than 4 bytes
  • error.ReservedBitSet if the frame is a Zstandard frame and any of the reserved bits are set

Parameters

source: anytype,