EncodeBitArrayDescending is the descending version of EncodeBitArrayAscending.
(b []byte, d bitarray.BitArray)
| 1620 | |
| 1621 | // EncodeBitArrayDescending is the descending version of EncodeBitArrayAscending. |
| 1622 | func EncodeBitArrayDescending(b []byte, d bitarray.BitArray) []byte { |
| 1623 | b = append(b, bitArrayDescMarker) |
| 1624 | words, lastBitsUsed := d.EncodingParts() |
| 1625 | for _, w := range words { |
| 1626 | b = EncodeUvarintDescending(b, w) |
| 1627 | } |
| 1628 | b = append(b, bitArrayDataDescTerminator) |
| 1629 | b = EncodeUvarintDescending(b, lastBitsUsed) |
| 1630 | return b |
| 1631 | } |
| 1632 | |
| 1633 | // DecodeBitArrayAscending decodes a bit array which was encoded using |
| 1634 | // EncodeBitArrayAscending. The remainder of the input buffer and the |
nothing calls this directly
no test coverage detected
searching dependent graphs…