EncodingParts retrieves the encoding bits from the bit array. The words are presented in big-endian order, with the leftmost bits of the bitarray (MSB) in the MSB of each word.
()
| 522 | // words are presented in big-endian order, with the leftmost bits of |
| 523 | // the bitarray (MSB) in the MSB of each word. |
| 524 | func (d BitArray) EncodingParts() ([]uint64, uint64) { |
| 525 | return d.words, uint64(d.lastBitsUsed) |
| 526 | } |
| 527 | |
| 528 | // FromEncodingParts creates a bit array from the encoding parts. |
| 529 | func FromEncodingParts(words []uint64, lastBitsUsed uint64) (BitArray, error) { |
no outgoing calls
no test coverage detected