Documentation
¶
Index ¶
- Variables
- type BitField
- func IntersectBitField(a, b *BitField) (*BitField, error)
- func MergeBitFields(a, b *BitField) (*BitField, error)
- func MultiMerge(bfs ...*BitField) (*BitField, error)
- func New() BitField
- func NewFromBytes(rle []byte) (BitField, error)
- func NewFromIter(r rlepluslazy.RunIterator) (*BitField, error)
- func NewFromSet(setBits []uint64) *BitField
- func SubtractBitField(a, b *BitField) (*BitField, error)
- func (bf BitField) All(max uint64) ([]uint64, error)
- func (bf BitField) AllMap(max uint64) (map[uint64]bool, error)
- func (bf *BitField) Copy() (*BitField, error)
- func (bf BitField) Count() (uint64, error)
- func (bf *BitField) First() (uint64, error)
- func (bf *BitField) ForEach(f func(uint64) error) error
- func (bf *BitField) IsEmpty() (bool, error)
- func (bf *BitField) IsSet(x uint64) (bool, error)
- func (bf *BitField) MarshalCBOR(w io.Writer) error
- func (bf *BitField) MarshalJSON() ([]byte, error)
- func (bf BitField) Set(bit uint64)
- func (bf *BitField) Slice(start, count uint64) (*BitField, error)
- func (bf *BitField) UnmarshalCBOR(r io.Reader) error
- func (bf *BitField) UnmarshalJSON(b []byte) error
- func (bf BitField) Unset(bit uint64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBitFieldTooMany = errors.New("to many items in RLE")
Functions ¶
This section is empty.
Types ¶
type BitField ¶
type BitField struct {
// contains filtered or unexported fields
}
func IntersectBitField ¶
func MergeBitFields ¶
func MultiMerge ¶
func NewFromBytes ¶
func NewFromIter ¶
func NewFromIter(r rlepluslazy.RunIterator) (*BitField, error)
func NewFromSet ¶
func SubtractBitField ¶
func (*BitField) Copy ¶
Copy flushes the bitfield and returns a copy that can be mutated without changing the original values
func (*BitField) MarshalJSON ¶
func (*BitField) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.