Versions in this module Expand all Collapse all v1 v1.29.5 Sep 8, 2021 v1.29.4 Sep 8, 2021 v1.29.3 Sep 7, 2021 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) 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) 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) PutByte(c 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) PutUvarintStr(s string) + func (e *Encbuf) PutVarint64(x int64) + func (e *Encbuf) Reset() + func (e *Encbuf) WriteToHash(h hash.Hash)