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