Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitVector ¶
type BitVector struct {
// contains filtered or unexported fields
}
BitVector is a convenience object for manipulating and representing bit vectors
func NewFromBytes ¶
NewFromBytes creates a bit vector from the passed byte slice.
Leftmost bit in byte slice becomes leftmost bit in bit vector
func (*BitVector) Set ¶
Set sets the bit corresponding to the index in the bitvector, counted from left to right
func (*BitVector) SetBytes ¶
SetBytes sets all bits in the bitvector that are set in the argument
The argument must be the same as the bitvector length
func (*BitVector) UnsetBytes ¶
UnsetBytes UNSETS all bits in the bitvector that are set in the argument
The argument must be the same as the bitvector length