Versions in this module Expand all Collapse all v0 v0.10.3 May 4, 2020 v0.10.2 May 4, 2020 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 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) Crc32(castagnoliTable *crc32.Table) uint32 + func (d *Decbuf) Err() error + func (d *Decbuf) Get() []byte + func (d *Decbuf) Len() int + func (d *Decbuf) Uvarint() int + func (d *Decbuf) Uvarint64() uint64 + 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) 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()