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

Function MakeZeroBitArray

pkg/util/bitarray/bitarray.go:109–112  ·  view source on GitHub ↗

MakeZeroBitArray creates a bit array with the specified bit size.

(bitLen uint)

Source from the content-addressed store, hash-verified

107
108// MakeZeroBitArray creates a bit array with the specified bit size.
109func MakeZeroBitArray(bitLen uint) BitArray {
110 a, b := EncodingPartsForBitLen(bitLen)
111 return mustFromEncodingParts(a, b)
112}
113
114// ToWidth resizes the bit array to the specified size.
115// If the specified width is shorter, bits on the right are truncated away.

Callers 4

MakeDBitArrayFunction · 0.92
MakeBitArrayFromInt64Function · 0.85
LeftShiftAnyMethod · 0.85
RandFunction · 0.85

Calls 2

EncodingPartsForBitLenFunction · 0.85
mustFromEncodingPartsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…