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

Function mustFromEncodingParts

postgres/parser/utils/bitarray.go:518–524  ·  view source on GitHub ↗

mustFromEncodingParts is like FromEncodingParts but errors cause a panic.

(words []uint64, lastBitsUsed uint64)

Source from the content-addressed store, hash-verified

516
517// mustFromEncodingParts is like FromEncodingParts but errors cause a panic.
518func mustFromEncodingParts(words []uint64, lastBitsUsed uint64) BitArray {
519 ba, err := FromEncodingParts(words, lastBitsUsed)
520 if err != nil {
521 panic(err)
522 }
523 return ba
524}
525
526// Rand generates a random bit array of the specified length.
527func Rand(rng *rand.Rand, bitLen uint) BitArray {

Callers 2

MakeZeroBitArrayFunction · 0.85
ToWidthMethod · 0.85

Calls 1

FromEncodingPartsFunction · 0.85

Tested by

no test coverage detected