fn frameType(magic: u32) error{BadMagic}!frame.Kind

Returns the kind of frame associated to magic.

Errors returned:

  • error.BadMagic if magic is not a valid magic number.

Parameters

magic: u32,