Versions in this module Expand all Collapse all v1 v1.999.300 Sep 4, 2024 Changes in this version + var ErrAtomTooLong = fmt.Errorf("atom too long - max allowed length is 255 bytes") + var ErrBinaryTooLong = fmt.Errorf("binary too long - max allowed length is 2^32-1 bytes (4GB)") + var ErrErrorTooLong = fmt.Errorf("error too long - max allowed length is 32767 bytes") + var ErrStringTooLong = fmt.Errorf("string too long - max allowed length is 2^16-1 (65535) bytes") + func Decode(packet []byte, options Options) (_ any, _ []byte, ret error) + func Encode(x any, b *lib.Buffer, options Options) (ret error) + func GetAtomCache() map[uint16]gen.Atom + func GetErrCache() map[uint16]error + func GetRegCache() map[uint16]string + func MakeEncodeRegTypeCache(names []string) *sync.Map + func RegisterAtom(a gen.Atom) error + func RegisterError(e error) error + func RegisterTypeOf(v any) error + type Marshaler interface + MarshalEDF func(io.Writer) error + type Options struct + AtomCache *sync.Map + AtomMapping *sync.Map + Cache *sync.Map + ErrCache *sync.Map + RegCache *sync.Map + type Unmarshaler interface + UnmarshalEDF func([]byte) error