Documentation ¶
Index ¶
- type BitSet
- func (bs *BitSet) And(other *BitSet) *BitSet
- func (bs *BitSet) Clear()
- func (bs *BitSet) Clone() *BitSet
- func (bs *BitSet) ContainsAll(other *BitSet) bool
- func (bs *BitSet) Empty() bool
- func (bs *BitSet) Equals(other *BitSet) bool
- func (bs *BitSet) Flip(idx int)
- func (bs *BitSet) Get(idx int) bool
- func (bs *BitSet) GetAndClear(idx uint64) bool
- func (bs *BitSet) GetAndSet(idx uint64) bool
- func (bs *BitSet) Intersects(other *BitSet) bool
- func (bs *BitSet) Invert() *BitSet
- func (bs *BitSet) NotEmpty() bool
- func (bs *BitSet) Or(other *BitSet) *BitSet
- func (bs *BitSet) Set(idx int, b bool)
- func (bs *BitSet) ToIntArray() []uint64
- func (bs *BitSet) Xor(other *BitSet) *BitSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitSet ¶
type BitSet struct {
// contains filtered or unexported fields
}
BitSet is used for storing lots of bits.
func (*BitSet) ContainsAll ¶
ContainsAll returns true if this bitset contains all flags present in the other bitset
func (*BitSet) GetAndClear ¶
GetAndClear will return the bit value at the given index in the entire bitset, and clear it in one step
func (*BitSet) GetAndSet ¶
GetAndSet will return the bit value at the given index in the entire bitset, and set it in one step
func (*BitSet) Intersects ¶
Intersects returns true if this bitset contains any of the bits from the other bitset
func (*BitSet) ToIntArray ¶
Click to show internal directories.
Click to hide internal directories.