Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
// ColferSizeMax is the upper limit for serial byte sizes.
ColferSizeMax = 16 * 1024 * 1024
)
Colfer configuration attributes
Functions ¶
This section is empty.
Types ¶
type Header ¶
Header is a prefix for requests and responses.
func (*Header) MarshalBinary ¶
MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is ColferMax.
func (*Header) MarshalLen ¶
MarshalLen returns the Colfer serial byte size. The error return option is ColferMax.
func (*Header) MarshalTo ¶
MarshalTo encodes o as Colfer into buf and returns the number of bytes written. If the buffer is too small, MarshalTo will panic.
func (*Header) Unmarshal ¶
Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, ColferError and ColferMax.
func (*Header) UnmarshalBinary ¶
UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, ColferError, ColferTail and ColferMax.