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

Function EncodingPartsForBitLen

pkg/util/bitarray/bitarray.go:301–308  ·  view source on GitHub ↗

EncodingPartsForBitLen creates a word backing array and the "last bits used" value given the given total number of bits.

(bitLen uint)

Source from the content-addressed store, hash-verified

299// EncodingPartsForBitLen creates a word backing array and the
300// "last bits used" value given the given total number of bits.
301func EncodingPartsForBitLen(bitLen uint) ([]uint64, uint64) {
302 if bitLen == 0 {
303 return nil, 0
304 }
305 numWords, lastBitsUsed := SizesForBitLen(bitLen)
306 words := make([]word, numWords)
307 return words, lastBitsUsed
308}
309
310// SizesForBitLen computes the number of words and last bits used for
311// the requested bit array size.

Callers 4

MakeZeroBitArrayFunction · 0.85
ToWidthMethod · 0.85
ParseFunction · 0.85

Calls 1

SizesForBitLenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…