Documentation
¶
Overview ¶
Package bitvec is bit-vector with atomic and non-atomic access
Index ¶
- type ABitVec
- func (bv ABitVec) Clear(k uint64) error
- func (bv ABitVec) Get(k uint64) (bool, error)
- func (bv ABitVec) GetBucket(k uint64) uint64
- func (bv ABitVec) GetBuckets4(a, b, c, d uint64) (x, y, z, w uint64)
- func (bv ABitVec) Set(k uint64) error
- func (bv ABitVec) TrySet(k uint64) bool
- func (bv ABitVec) TrySetWith(old uint64, k uint64) bool
- type BitVec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ABitVec ¶
type ABitVec struct {
// contains filtered or unexported fields
}
ABitVec is a bitvector backed by an array of uint64. Bits are referenced by bucket (uint64) and bit within the bucket.
func (ABitVec) GetBuckets4 ¶
GetBuckets4 returns buckets 4 at a time.
Click to show internal directories.
Click to hide internal directories.