MakeZeroBitArray creates a bit array with the specified bit size.
(bitLen uint)
| 121 | |
| 122 | // MakeZeroBitArray creates a bit array with the specified bit size. |
| 123 | func MakeZeroBitArray(bitLen uint) BitArray { |
| 124 | a, b := EncodingPartsForBitLen(bitLen) |
| 125 | return mustFromEncodingParts(a, b) |
| 126 | } |
| 127 | |
| 128 | // ToWidth resizes the bit array to the specified size. |
| 129 | // If the specified width is shorter, bits on the right are truncated away. |
no test coverage detected