ankh v0.3.1 Ankh.Frame.Encoder protocol
Protocol for encoding/decoding frame structs
Expects a struct with the format injected by use Ankh.Frame
Summary
Types
Struct conforming to the Ankh.Frame.Encoder
protocol
Types
Struct conforming to the Ankh.Frame.Encoder
protocol
Functions
Decodes a binary into a conforming struct
Parameters:
- struct: struct conforming to the
Ankh.Frame.Encoder
protocol - binary: data to decode into the struct
- options: options to pass as context to the decoding function
Encodes a conforming struct into binary
Parameters:
- struct: struct conforming to the
Ankh.Frame.Encoder
protocol - options: options to pass as context to the encoding function