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

Method Count

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

Count returns the number of set bits in this array.

()

Source from the content-addressed store, hash-verified

61 Capacity() uint64
62 // Count returns the number of set bits in this array.
63 Count() int
64 // Or will bitwise or the two bitarrays and return a new bitarray
65 // representing the result.
66 Or(other BitArray) BitArray

Callers 2

TestCompressedCountFunction · 0.65
TestCountFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 2

TestCompressedCountFunction · 0.52
TestCountFunction · 0.52