Package bitvec
Overview ▸
Index ▸
type BitVec
A BitVec is a bit vector.
type BitVec struct {
N int32 // number of bits in vector
B []uint32 // words holding bits
}
func New
func New(n int32) BitVec
func (BitVec) And
func (dst BitVec) And(src1, src2 BitVec)
intersection
func (BitVec) AndNot
func (dst BitVec) AndNot(src1, src2 BitVec)
difference
func (BitVec) Clear
func (bv BitVec) Clear()
func (BitVec) Copy
func (dst BitVec) Copy(src BitVec)
func (BitVec) Count
func (bv BitVec) Count() int
func (BitVec) Eq
func (bv1 BitVec) Eq(bv2 BitVec) bool
func (BitVec) Get
func (bv BitVec) Get(i int32) bool
func (BitVec) IsEmpty
func (bv BitVec) IsEmpty() bool
func (BitVec) Next
func (bv BitVec) Next(i int32) int32
bvnext returns the smallest index >= i for which bvget(bv, i) == 1. If there is no such index, bvnext returns -1.
func (BitVec) Not
func (bv BitVec) Not()
func (BitVec) Or
func (dst BitVec) Or(src1, src2 BitVec)
union
func (BitVec) Set
func (bv BitVec) Set(i int32)
func (BitVec) String
func (bv BitVec) String() string
func (BitVec) Unset
func (bv BitVec) Unset(i int32)
type Bulk
type Bulk struct {
// contains filtered or unexported fields
}
func NewBulk
func NewBulk(nbit int32, count int32, pos src.XPos) Bulk
func (*Bulk) Next
func (b *Bulk) Next() BitVec