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

Method GetSetBits

bitarray/interface.go:42–42  ·  view source on GitHub ↗

GetSetBits gets the position of bits set in the array. Will return as many set bits as can fit in the provided buffer starting from the specified position in the array.

(from uint64, buffer []uint64)

Source from the content-addressed store, hash-verified

40 // return as many set bits as can fit in the provided buffer
41 // starting from the specified position in the array.
42 GetSetBits(from uint64, buffer []uint64) []uint64
43 // ClearBit clears the bit at the given position. This
44 // function returns an error if the position is out
45 // of range. A sparse bit array never returns an error.

Callers 4

TestGetSetCompressedBitsFunction · 0.65
TestGetSetBitsFunction · 0.65
BenchmarkGetSetBitsFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 4

TestGetSetCompressedBitsFunction · 0.52
TestGetSetBitsFunction · 0.52
BenchmarkGetSetBitsFunction · 0.52