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 KV ¶
func (*KV) MarshalBinary ¶
MarshalBinary encodes o as Colfer conform encoding.BinaryMarshaler. The error return option is kv.ColferMax.
func (*KV) MarshalLen ¶
MarshalLen returns the Colfer serial byte size. The error return option is kv.ColferMax.
func (*KV) 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 (*KV) Unmarshal ¶
Unmarshal decodes data as Colfer and returns the number of bytes read. The error return options are io.EOF, kv.ColferError and kv.ColferMax.
func (*KV) UnmarshalBinary ¶
UnmarshalBinary decodes data as Colfer conform encoding.BinaryUnmarshaler. The error return options are io.EOF, kv.ColferError, kv.ColferTail and kv.ColferMax.