Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2021 Changes in this version + func Copy(dst, src *Bitstring) + func EqualRange(bs1, bs2 *Bitstring, start, length int) bool + func SwapRange(bs1, bs2 *Bitstring, start, length int) + type Bitstring struct + func Clone(src *Bitstring) *Bitstring + func New(length int) *Bitstring + func NewFromString(s string) (*Bitstring, error) + func Random(length int, rng *rand.Rand) *Bitstring + func (bs *Bitstring) BigInt() *big.Int + func (bs *Bitstring) Bit(i int) bool + func (bs *Bitstring) ClearBit(i int) + func (bs *Bitstring) ClearRange(start, length int) + func (bs *Bitstring) Data() []uint64 + func (bs *Bitstring) Equals(other *Bitstring) bool + func (bs *Bitstring) FlipBit(i int) + func (bs *Bitstring) FlipRange(start, length int) + func (bs *Bitstring) Gray16(i int) uint16 + func (bs *Bitstring) Gray32(i int) uint32 + func (bs *Bitstring) Gray64(i int) uint64 + func (bs *Bitstring) Gray8(i int) uint8 + func (bs *Bitstring) Grayn(nbits, i int) uint64 + func (bs *Bitstring) Int16(i int) int16 + func (bs *Bitstring) Int32(i int) int32 + func (bs *Bitstring) Int64(i int) int64 + func (bs *Bitstring) Int8(i int) int8 + func (bs *Bitstring) Intn(nbits, i int) int32 + func (bs *Bitstring) Len() int + func (bs *Bitstring) OnesCount() int + func (bs *Bitstring) SetBit(i int) + func (bs *Bitstring) SetInt16(i int, x int16) + func (bs *Bitstring) SetInt32(i int, x int32) + func (bs *Bitstring) SetInt64(i int, x int64) + func (bs *Bitstring) SetInt8(i int, x int8) + func (bs *Bitstring) SetIntn(n, i int, x int64) + func (bs *Bitstring) SetRange(start, length int) + func (bs *Bitstring) SetUint16(i int, x uint16) + func (bs *Bitstring) SetUint32(i int, x uint32) + func (bs *Bitstring) SetUint64(i int, x uint64) + func (bs *Bitstring) SetUint8(i int, x uint8) + func (bs *Bitstring) SetUintn(n, i int, x uint64) + func (bs *Bitstring) String() string + func (bs *Bitstring) Uint16(i int) uint16 + func (bs *Bitstring) Uint32(i int) uint32 + func (bs *Bitstring) Uint64(i int) uint64 + func (bs *Bitstring) Uint8(i int) uint8 + func (bs *Bitstring) Uintn(n, i int) uint64 + func (bs *Bitstring) ZeroesCount() int