Versions in this module Expand all Collapse all v1 v1.0.0 Oct 22, 2025 Changes in this version + var ErrWrongDecodeType = errors.New("error wrong decode type") + var ErrWrongEncodeType = errors.New("error wrong encode type") + func ByteSliceToString(b []byte) string + func DecodeBool(buffer *bytes.Buffer) bool + func DecodeBuffer(buffer *bytes.Buffer) *bytes.Buffer + func DecodeBytes(buffer *bytes.Buffer) []byte + func DecodeDecodable(decodable Decodable, buffer *bytes.Buffer) any + func DecodeFloat32(buffer *bytes.Buffer) float32 + func DecodeFloat64(buffer *bytes.Buffer) float64 + func DecodeInt(buffer *bytes.Buffer) int + func DecodeInt16(buffer *bytes.Buffer) int16 + func DecodeInt32(buffer *bytes.Buffer) int32 + func DecodeInt64(buffer *bytes.Buffer) int64 + func DecodeInt8(buffer *bytes.Buffer) int8 + func DecodeString(buffer *bytes.Buffer) string + func DecodeUint16(buffer *bytes.Buffer) uint16 + func DecodeUint32(buffer *bytes.Buffer) uint32 + func DecodeUint64(buffer *bytes.Buffer) uint64 + func DecodeUint8(buffer *bytes.Buffer) uint8 + func EncodeBool(v bool, buffer *bytes.Buffer) + func EncodeBuffer(v *bytes.Buffer, buffer *bytes.Buffer) + func EncodeBytes(v []byte, buffer *bytes.Buffer) + func EncodeEncodeable(v Encodeable, buffer *bytes.Buffer) + func EncodeFloat32(v float32, buffer *bytes.Buffer) + func EncodeFloat64(v float64, buffer *bytes.Buffer) + func EncodeInt(v int, buffer *bytes.Buffer) + func EncodeInt16(v int16, buffer *bytes.Buffer) + func EncodeInt32(v int32, buffer *bytes.Buffer) + func EncodeInt64(v int64, buffer *bytes.Buffer) + func EncodeInt8(v int8, buffer *bytes.Buffer) + func EncodeString(v string, buffer *bytes.Buffer) + func EncodeUint16(v uint16, buffer *bytes.Buffer) + func EncodeUint32(v uint32, buffer *bytes.Buffer) + func EncodeUint64(v uint64, buffer *bytes.Buffer) + func EncodeUint8(v uint8, buffer *bytes.Buffer) + type BinaryDecoder struct + func NewBinaryDecoder(data []byte) *BinaryDecoder + func (b *BinaryDecoder) Bytes() []byte + func (b *BinaryDecoder) Decode(value any) error + type BinaryEncoder struct + func NewBinaryEncoder() *BinaryEncoder + func (b *BinaryEncoder) Bytes() []byte + func (b *BinaryEncoder) Encode(value any) error + type Decodable interface + Decode func(uint8, []byte) any + type Encodeable interface + Encode func() (uint8, []byte)