MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / BitLen

Method BitLen

pkg/util/bitarray/bitarray.go:82–87  ·  view source on GitHub ↗

BitLen returns the number of bits stored.

()

Source from the content-addressed store, hash-verified

80
81// BitLen returns the number of bits stored.
82func (d BitArray) BitLen() uint {
83 if len(d.words) == 0 {
84 return 0
85 }
86 return d.nonEmptyBitLen()
87}
88
89func (d BitArray) nonEmptyBitLen() uint {
90 return uint(len(d.words)-1)*numBitsPerWord + uint(d.lastBitsUsed)

Callers 8

ToWidthMethod · 0.95
LeftShiftAnyMethod · 0.95
FormatMethod · 0.95
GetBitAtIndexMethod · 0.95
eval.goFile · 0.80
PerformCastFunction · 0.80
SetBitAtIndexMethod · 0.80

Calls 1

nonEmptyBitLenMethod · 0.95

Tested by

no test coverage detected