fn decodeFrameHeader(source: anytype) @TypeOf(source).Error || HeaderError!FrameHeader
[src]
Returns the header of the frame at the beginning of source
.
Errors returned:
error.BadMagic
ifsource
begins with bytes not equal to the Zstandard frame magic number, or outside the range of magic numbers for skippable frames.error.EndOfStream
ifsource
contains fewer than 4 byteserror.ReservedBitSet
if the frame is a Zstandard frame and any of the reserved bits are set