Versions in this module Expand all Collapse all v0 v0.10.0 Jul 24, 2019 v0.9.1 Jul 3, 2019 v0.9.0 Jul 3, 2019 v0.8.0 May 17, 2019 v0.7.1 Apr 24, 2019 v0.7.0 Apr 10, 2019 v0.6.1 Mar 5, 2019 v0.6.0 Mar 2, 2019 v0.5.0 Mar 1, 2019 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()