EncodeBitArrayDescending is the descending version of EncodeBitArrayAscending.
(b []byte, d bitarray.BitArray)
| 1136 | |
| 1137 | // EncodeBitArrayDescending is the descending version of EncodeBitArrayAscending. |
| 1138 | func EncodeBitArrayDescending(b []byte, d bitarray.BitArray) []byte { |
| 1139 | b = append(b, bitArrayDescMarker) |
| 1140 | words, lastBitsUsed := d.EncodingParts() |
| 1141 | for _, w := range words { |
| 1142 | b = EncodeUvarintDescending(b, w) |
| 1143 | } |
| 1144 | b = append(b, bitArrayDataDescTerminator) |
| 1145 | b = EncodeUvarintDescending(b, lastBitsUsed) |
| 1146 | return b |
| 1147 | } |
| 1148 | |
| 1149 | // DecodeBitArrayAscending decodes a bit array which was encoded using |
| 1150 | // EncodeBitArrayAscending. The remainder of the input buffer and the |
nothing calls this directly
no test coverage detected
searching dependent graphs…