mustFromEncodingParts is like FromEncodingParts but errors cause a panic.
(words []uint64, lastBitsUsed uint64)
| 540 | |
| 541 | // mustFromEncodingParts is like FromEncodingParts but errors cause a panic. |
| 542 | func 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. |
| 551 | func Rand(rng *rand.Rand, bitLen uint) BitArray { |
no test coverage detected
searching dependent graphs…