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

Method Capacity

bitarray/bitarray.go:72–74  ·  view source on GitHub ↗

capacity returns the total capacity of the bit array.

()

Source from the content-addressed store, hash-verified

70
71// capacity returns the total capacity of the bit array.
72func (ba *bitArray) Capacity() uint64 {
73 return uint64(len(ba.blocks)) * s
74}
75
76// ToNums converts this bitarray to a list of numbers contained within it.
77func (ba *bitArray) ToNums() []uint64 {

Callers 4

SetBitMethod · 0.95
GetBitMethod · 0.95
ClearBitMethod · 0.95
IntersectsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected