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

Function mustFromEncodingParts

pkg/util/bitarray/bitarray.go:504–510  ·  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

502
503// mustFromEncodingParts is like FromEncodingParts but errors cause a panic.
504func mustFromEncodingParts(words []uint64, lastBitsUsed uint64) BitArray {
505 ba, err := FromEncodingParts(words, lastBitsUsed)
506 if err != nil {
507 panic(err)
508 }
509 return ba
510}
511
512// Rand generates a random bit array of the specified length.
513func 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…