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

Function MakeZeroBitArray

pkg/util/bitarray/bitarray.go:103–106  ·  view source on GitHub ↗

MakeZeroBitArray creates a bit array with the specified bit size.

(bitLen uint)

Source from the content-addressed store, hash-verified

101
102// MakeZeroBitArray creates a bit array with the specified bit size.
103func MakeZeroBitArray(bitLen uint) BitArray {
104 a, b := EncodingPartsForBitLen(bitLen)
105 return mustFromEncodingParts(a, b)
106}
107
108// ToWidth resizes the bit array to the specified size.
109// 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…