Versions in this module Expand all Collapse all v1 v1.7.9 Oct 27, 2019 Changes in this version + const MaxValue + const S8B_BIT_SIZE + var ErrValueOutOfBounds = errors.New("value out of bounds") + func Count(v uint64) (int, error) + func CountBytes(b []byte) (int, error) + func CountBytesBetween(b []byte, min, max uint64) (int, error) + func Decode(dst *[240]uint64, v uint64) (n int, err error) + func DecodeAll(dst, src []uint64) (value int, err error) + func DecodeBytesBigEndian(dst []uint64, src []byte) (value int, err error) + func Encode(src []uint64) (value uint64, n int, err error) + func EncodeAll(src []uint64) ([]uint64, error) + func ForEach(b []byte, fn func(v uint64) bool) error + type Decoder struct + func NewDecoder(b []byte) *Decoder + func (d *Decoder) Next() bool + func (d *Decoder) Read() uint64 + func (d *Decoder) SetBytes(b []byte) + type Encoder struct + func NewEncoder() *Encoder + func (e *Encoder) Bytes() ([]byte, error) + func (e *Encoder) Reset() + func (e *Encoder) SetValues(v []uint64) + func (e *Encoder) Write(v uint64) error