MCPcopy Create free account
hub / github.com/dolthub/doltgresql / BitLen

Method BitLen

postgres/parser/utils/bitarray.go:96–101  ·  view source on GitHub ↗

BitLen returns the number of bits stored.

()

Source from the content-addressed store, hash-verified

94
95// BitLen returns the number of bits stored.
96func (d BitArray) BitLen() uint {
97 if len(d.words) == 0 {
98 return 0
99 }
100 return d.nonEmptyBitLen()
101}
102
103func (d BitArray) nonEmptyBitLen() uint {
104 return uint(len(d.words)-1)*numBitsPerWord + uint(d.lastBitsUsed)

Callers 10

ToWidthMethod · 0.95
LeftShiftAnyMethod · 0.95
FormatMethod · 0.95
GetBitAtIndexMethod · 0.95
SetBitAtIndexMethod · 0.80
bit.goFile · 0.80
varbit.goFile · 0.80
bitExplicitFunction · 0.80
bitImplicitFunction · 0.80
varBitImplicitFunction · 0.80

Calls 1

nonEmptyBitLenMethod · 0.95

Tested by

no test coverage detected