Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + var BufferPool = sync.Pool + func GetBuffer() *[]byte + func PutBuffer(buf *[]byte) + type BatchDecodeResult struct + Errors []error + Results []*DecodeResult + type BitReader struct + func NewBitReader(data []byte) *BitReader + func (r *BitReader) BitOffset() int + func (r *BitReader) ByteOffset() int + func (r *BitReader) ReadBits(numBits int, order schema.ByteOrder) (uint64, error) + func (r *BitReader) ReadBytes(n int) ([]byte, error) + func (r *BitReader) ReadRemainingBytes() []byte + func (r *BitReader) RemainingBits() int + type BitWriter struct + func NewBitWriter() *BitWriter + func (w *BitWriter) BitOffset() int + func (w *BitWriter) Bytes() []byte + func (w *BitWriter) Len() int + func (w *BitWriter) SetBytesAt(offset int, data []byte) + func (w *BitWriter) WriteBits(value uint64, numBits int, order schema.ByteOrder) error + func (w *BitWriter) WriteByteSlice(data []byte) error + type CodecEngine struct + func NewCodecEngine(cr *checksum.ChecksumRegistry, fr *format.FormatRegistry) *CodecEngine + func (e *CodecEngine) BatchDecode(s interface{ ... }, packets [][]byte) *BatchDecodeResult + func (e *CodecEngine) Decode(s *schema.ProtocolSchema, data []byte) (*DecodeResult, error) + func (e *CodecEngine) Encode(s *schema.ProtocolSchema, packet map[string]any) ([]byte, error) + type DecodeResult struct + BytesRead int + Packet map[string]any + type Decoder struct + func NewDecoder(cr *checksum.ChecksumRegistry, fr *format.FormatRegistry) *Decoder + func (dec *Decoder) Decode(s *schema.ProtocolSchema, data []byte) (*DecodeResult, error) + type Encoder struct + func NewEncoder(cr *checksum.ChecksumRegistry, fr *format.FormatRegistry) *Encoder + func (enc *Encoder) Encode(s *schema.ProtocolSchema, packet map[string]any) ([]byte, error)