MCPcopy Index your code
hub / github.com/Workiva/go-datastructures / bitArray

Struct bitArray

bitarray/bitarray.go:26–31  ·  view source on GitHub ↗

bitArray is a struct that maintains state of a bit array.

Source from the content-addressed store, hash-verified

24
25// bitArray is a struct that maintains state of a bit array.
26type bitArray struct {
27 blocks []block
28 lowest uint64
29 highest uint64
30 anyset bool
31}
32
33func getIndexAndRemainder(k uint64) (uint64, uint64) {
34 return k / s, k % s

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected