Versions in this module Expand all Collapse all v0 v0.49.5 Feb 12, 2024 v0.49.2 Feb 12, 2024 v0.48.3 Feb 19, 2024 v0.48.2 Feb 13, 2024 v0.0.5 Feb 12, 2024 v0.0.4 Feb 9, 2024 v0.0.3 Feb 9, 2024 v0.0.2 Feb 9, 2024 Changes in this version + var ErrInvalidChecksum = errors.New("invalid checksum") + var ErrInvalidSize = errors.New("invalid size") + type ByteSlice interface + Len func() int + Range func(start, end int) []byte + type Decbuf struct + B []byte + E error + func NewDecbufAt(bs ByteSlice, off int, castagnoliTable *crc32.Table) Decbuf + func NewDecbufRaw(bs ByteSlice, length int) Decbuf + func NewDecbufUvarintAt(bs ByteSlice, off int, castagnoliTable *crc32.Table) Decbuf + func (d *Decbuf) Be32() uint32 + func (d *Decbuf) Be32int() int + func (d *Decbuf) Be64() uint64 + func (d *Decbuf) Be64Float64() float64 + func (d *Decbuf) Be64int64() int64 + func (d *Decbuf) Byte() byte + func (d *Decbuf) ConsumePadding() + func (d *Decbuf) Crc32(castagnoliTable *crc32.Table) uint32 + func (d *Decbuf) Err() error + func (d *Decbuf) Get() []byte + func (d *Decbuf) Len() int + func (d *Decbuf) Skip(l int) + func (d *Decbuf) Uvarint() int + func (d *Decbuf) Uvarint32() uint32 + func (d *Decbuf) Uvarint64() uint64 + func (d *Decbuf) UvarintBytes() []byte + func (d *Decbuf) UvarintStr() string + func (d *Decbuf) Varint64() int64 + type Encbuf struct + B []byte + C [binary.MaxVarintLen64]byte + func (e *Encbuf) Get() []byte + func (e *Encbuf) Len() int + func (e *Encbuf) PutBE32(x uint32) + func (e *Encbuf) PutBE32int(x int) + func (e *Encbuf) PutBE64(x uint64) + func (e *Encbuf) PutBE64int64(x int64) + func (e *Encbuf) PutBEFloat64(x float64) + func (e *Encbuf) PutByte(c byte) + func (e *Encbuf) PutBytes(b []byte) + func (e *Encbuf) PutHash(h hash.Hash) + func (e *Encbuf) PutHashSum(h hash.Hash) + func (e *Encbuf) PutString(s string) + func (e *Encbuf) PutUvarint(x int) + func (e *Encbuf) PutUvarint32(x uint32) + func (e *Encbuf) PutUvarint64(x uint64) + func (e *Encbuf) PutUvarintBytes(b []byte) + func (e *Encbuf) PutUvarintStr(s string) + func (e *Encbuf) PutVarint64(x int64) + func (e *Encbuf) Reset() + func (e *Encbuf) WriteToHash(h hash.Hash)