Documentation ¶
Index ¶
- type BV
- func (bv *BV) Equals(bv2 *BV) bool
- func (bv *BV) Get(i uint64) bool
- func (bv *BV) GetInt(offset uint, bitLen uint8) uint64
- func (bv *BV) Reset()
- func (bv *BV) SerializedSize() int
- func (bv *BV) Set(i uint64, b bool)
- func (bv *BV) SetInt(offset int, bitLen uint8, v uint64)
- func (bv *BV) Size() int
- func (bv *BV) SizeInBytes() uint64
- func (bv *BV) String() string
- func (bv *BV) WriteTo(w io.Writer) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BV ¶
type BV struct {
// contains filtered or unexported fields
}
BV is a bitvector
func NewByteBacked ¶
NewByteBacked returns a bitvector backed by buf
func (*BV) SerializedSize ¶
SerializedSize returns the size of the bv when serialized. i.e. WriteTo
func (*BV) SizeInBytes ¶
SizeInBytes returns the size of the bit vector in bytes.
Click to show internal directories.
Click to hide internal directories.