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

Method Capacity

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

Capacity returns either the given capacity of the bit array in the case of a dense bit array or the highest possible seen capacity of the sparse array.

()

Source from the content-addressed store, hash-verified

59 // in the case of a dense bit array or the highest possible
60 // seen capacity of the sparse array.
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

Callers 11

EqualsMethod · 0.65
IntersectsMethod · 0.65
EqualsMethod · 0.65
IntersectsMethod · 0.65
orDenseWithDenseBitArrayFunction · 0.65
BenchmarkGetSetBitsFunction · 0.65
BenchmarkEqualityFunction · 0.65
TestIntersectsFunction · 0.65
BenchmarkIntersectsFunction · 0.65

Implementers 2

sparseBitArraybitarray/sparse_bitarray.go
bitArraybitarray/bitarray.go

Calls

no outgoing calls

Tested by 5

BenchmarkGetSetBitsFunction · 0.52
BenchmarkEqualityFunction · 0.52
TestIntersectsFunction · 0.52
BenchmarkIntersectsFunction · 0.52