MakeZeroBitArray creates a bit array with the specified bit size.
(bitLen uint)
| 101 | |
| 102 | // MakeZeroBitArray creates a bit array with the specified bit size. |
| 103 | func MakeZeroBitArray(bitLen uint) BitArray { |
| 104 | a, b := EncodingPartsForBitLen(bitLen) |
| 105 | return mustFromEncodingParts(a, b) |
| 106 | } |
| 107 | |
| 108 | // ToWidth resizes the bit array to the specified size. |
| 109 | // If the specified width is shorter, bits on the right are truncated away. |
no test coverage detected
searching dependent graphs…