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

Function mustFromEncodingParts

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

540
541// mustFromEncodingParts is like FromEncodingParts but errors cause a panic.
542func mustFromEncodingParts(words []uint64, lastBitsUsed uint64) BitArray {
543 ba, err := FromEncodingParts(words, lastBitsUsed)
544 if err != nil {
545 panic(err)
546 }
547 return ba
548}
549
550// Rand generates a random bit array of the specified length.
551func 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…