Versions in this module Expand all Collapse all v1 v1.1.0 Dec 23, 2025 Changes in this version + type ArrayCodec struct + func (c *ArrayCodec) Decode(data []byte) (interface{}, error) + func (c *ArrayCodec) Encode(value interface{}) ([]byte, error) + type MapCodec struct + func (c *MapCodec) Decode(data []byte) (interface{}, error) + func (c *MapCodec) Encode(value interface{}) ([]byte, error) + type SliceCodec struct + func (c *SliceCodec) Decode(data []byte) (interface{}, error) + func (c *SliceCodec) Encode(value interface{}) ([]byte, error) v1.0.2 Dec 23, 2025 Changes in this version + const BOF + const EOF + type BoolCodec struct + func (c *BoolCodec) Decode(data []byte) (interface{}, error) + func (c *BoolCodec) Encode(value interface{}) ([]byte, error) + type Codec interface + Decode func(data []byte) (interface{}, error) + Encode func(value interface{}) ([]byte, error) + type CodecRegistry struct + func NewCodecRegistry() *CodecRegistry + func (r *CodecRegistry) GetCodec(tag byte) (Codec, error) + func (r *CodecRegistry) GetTag(value interface{}) (byte, error) + func (r *CodecRegistry) RegisterCodec(tag byte, codec Codec, exampleType interface{}) + func (r *CodecRegistry) RegisterPrimitives() + func (r *CodecRegistry) RegisterStruct(exampleType interface{}) (byte, error) + type Complex128Codec struct + func (c *Complex128Codec) Decode(data []byte) (interface{}, error) + func (c *Complex128Codec) Encode(value interface{}) ([]byte, error) + type Complex64Codec struct + func (c *Complex64Codec) Decode(data []byte) (interface{}, error) + func (c *Complex64Codec) Encode(value interface{}) ([]byte, error) + type Decoder struct + func NewDecoder(registry *CodecRegistry, reader io.Reader) *Decoder + func (d *Decoder) Decode() (interface{}, error) + type Encoder struct + func NewEncoder(registry *CodecRegistry) *Encoder + func (e *Encoder) Encode(value interface{}) ([]byte, error) + type Float32Codec struct + func (c *Float32Codec) Decode(data []byte) (interface{}, error) + func (c *Float32Codec) Encode(value interface{}) ([]byte, error) + type Float64Codec struct + func (c *Float64Codec) Decode(data []byte) (interface{}, error) + func (c *Float64Codec) Encode(value interface{}) ([]byte, error) + type Int16Codec struct + func (c *Int16Codec) Decode(data []byte) (interface{}, error) + func (c *Int16Codec) Encode(value interface{}) ([]byte, error) + type Int32Codec struct + func (c *Int32Codec) Decode(data []byte) (interface{}, error) + func (c *Int32Codec) Encode(value interface{}) ([]byte, error) + type Int64Codec struct + func (c *Int64Codec) Decode(data []byte) (interface{}, error) + func (c *Int64Codec) Encode(value interface{}) ([]byte, error) + type Int8Codec struct + func (c *Int8Codec) Decode(data []byte) (interface{}, error) + func (c *Int8Codec) Encode(value interface{}) ([]byte, error) + type IntCodec struct + func (c *IntCodec) Decode(data []byte) (interface{}, error) + func (c *IntCodec) Encode(value interface{}) ([]byte, error) + type InterfaceCodec struct + func (c *InterfaceCodec) Decode(data []byte) (interface{}, error) + func (c *InterfaceCodec) Encode(value interface{}) ([]byte, error) + type LocationCodec struct + func (c *LocationCodec) Decode(data []byte) (interface{}, error) + func (c *LocationCodec) Encode(value interface{}) ([]byte, error) + type MapStringAnyCodec struct + func (c *MapStringAnyCodec) Decode(data []byte) (interface{}, error) + func (c *MapStringAnyCodec) Encode(value interface{}) ([]byte, error) + type MarshalerCodec struct + func (c *MarshalerCodec) Decode(data []byte) (interface{}, error) + func (c *MarshalerCodec) Encode(value interface{}) ([]byte, error) + type PointerCodec struct + func (c *PointerCodec) Decode(data []byte) (interface{}, error) + func (c *PointerCodec) Encode(value interface{}) ([]byte, error) + type StringCodec struct + func (c *StringCodec) Decode(data []byte) (interface{}, error) + func (c *StringCodec) Encode(value interface{}) ([]byte, error) + type StructCodec struct + func NewStructCodec(registry *CodecRegistry, exampleType interface{}) *StructCodec + func (c *StructCodec) Decode(data []byte) (interface{}, error) + func (c *StructCodec) Encode(value interface{}) ([]byte, error) + func (c *StructCodec) RegisterField(fieldName string, typeTag byte) + type Uint16Codec struct + func (c *Uint16Codec) Decode(data []byte) (interface{}, error) + func (c *Uint16Codec) Encode(value interface{}) ([]byte, error) + type Uint32Codec struct + func (c *Uint32Codec) Decode(data []byte) (interface{}, error) + func (c *Uint32Codec) Encode(value interface{}) ([]byte, error) + type Uint64Codec struct + func (c *Uint64Codec) Decode(data []byte) (interface{}, error) + func (c *Uint64Codec) Encode(value interface{}) ([]byte, error) + type Uint8Codec struct + func (c *Uint8Codec) Decode(data []byte) (interface{}, error) + func (c *Uint8Codec) Encode(value interface{}) ([]byte, error) + type UintCodec struct + func (c *UintCodec) Decode(data []byte) (interface{}, error) + func (c *UintCodec) Encode(value interface{}) ([]byte, error) + type UintptrCodec struct + func (c *UintptrCodec) Decode(data []byte) (interface{}, error) + func (c *UintptrCodec) Encode(value interface{}) ([]byte, error)