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