Function frameType [src]
Returns the kind of frame associated to magic.
Errors returned:
error.BadMagic if magic is not a valid magic number.
Prototype
pub fn frameType(magic: u32) error{BadMagic}!frame.Kind
Parameters
magic: u32
Possible Errors
Source
pub fn frameType(magic: u32) error{BadMagic}!frame.Kind {
return if (magic == frame.Zstandard.magic_number)
.zstandard
else if (isSkippableMagic(magic))
.skippable
else
error.BadMagic;
}