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

Function MakeZeroBitArray

postgres/parser/utils/bitarray.go:123–126  ·  view source on GitHub ↗

MakeZeroBitArray creates a bit array with the specified bit size.

(bitLen uint)

Source from the content-addressed store, hash-verified

121
122// MakeZeroBitArray creates a bit array with the specified bit size.
123func MakeZeroBitArray(bitLen uint) BitArray {
124 a, b := EncodingPartsForBitLen(bitLen)
125 return mustFromEncodingParts(a, b)
126}
127
128// ToWidth resizes the bit array to the specified size.
129// If the specified width is shorter, bits on the right are truncated away.

Callers 3

MakeBitArrayFromInt64Function · 0.85
LeftShiftAnyMethod · 0.85
RandFunction · 0.85

Calls 2

EncodingPartsForBitLenFunction · 0.85
mustFromEncodingPartsFunction · 0.85

Tested by

no test coverage detected