Returns the kind of 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 bytes