Versions in this module Expand all Collapse all v0 v0.1.1 Jun 2, 2019 v0.1.0 May 31, 2019 Changes in this version + var ErrIndexOutOfRange = errors.New("bitstring.Bitstring: index out of range") + var ErrInvalidLength = errors.New("bitstring.Bitstring: invalid length") + func SwapRange(bs1, bs2 *Bitstring, start, length uint) + type Bitstring struct + func Copy(src *Bitstring) *Bitstring + func MakeFromString(s string) (*Bitstring, error) + func New(length uint) *Bitstring + func Random(length uint, rng *rand.Rand) *Bitstring + func (bs *Bitstring) BigInt() *big.Int + func (bs *Bitstring) Bit(i uint) bool + func (bs *Bitstring) ClearBit(i uint) + func (bs *Bitstring) Data() []uint + func (bs *Bitstring) Equals(other *Bitstring) bool + func (bs *Bitstring) FlipBit(i uint) + func (bs *Bitstring) Gray16(i uint) uint16 + func (bs *Bitstring) Gray32(i uint) uint32 + func (bs *Bitstring) Gray64(i uint) uint64 + func (bs *Bitstring) Gray8(i uint) uint8 + func (bs *Bitstring) Grayn(nbits, i uint) uint + func (bs *Bitstring) Int16(i uint) int16 + func (bs *Bitstring) Int32(i uint) int32 + func (bs *Bitstring) Int64(i uint) int64 + func (bs *Bitstring) Int8(i uint) int8 + func (bs *Bitstring) Intn(nbits, i uint) int32 + func (bs *Bitstring) Len() int + func (bs *Bitstring) OnesCount() uint + func (bs *Bitstring) SetBit(i uint) + func (bs *Bitstring) SetInt16(i uint, x int16) + func (bs *Bitstring) SetInt32(i uint, x int32) + func (bs *Bitstring) SetInt64(i uint, x int64) + func (bs *Bitstring) SetInt8(i uint, x int8) + func (bs *Bitstring) SetIntn(n, i uint, x uint) + func (bs *Bitstring) SetUint16(i uint, x uint16) + func (bs *Bitstring) SetUint32(i uint, x uint32) + func (bs *Bitstring) SetUint64(i uint, x uint64) + func (bs *Bitstring) SetUint8(i uint, x uint8) + func (bs *Bitstring) SetUintn(n, i uint, x uint) + func (bs *Bitstring) String() string + func (bs *Bitstring) Uint16(i uint) uint16 + func (bs *Bitstring) Uint32(i uint) uint32 + func (bs *Bitstring) Uint64(i uint) uint64 + func (bs *Bitstring) Uint8(i uint) uint8 + func (bs *Bitstring) Uintn(n, i uint) uint + func (bs *Bitstring) ZeroesCount() uint