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.
()
| 484 | // words are presented in big-endian order, with the leftmost bits of |
| 485 | // the bitarray (MSB) in the MSB of each word. |
| 486 | func (d BitArray) EncodingParts() ([]uint64, uint64) { |
| 487 | return d.words, uint64(d.lastBitsUsed) |
| 488 | } |
| 489 | |
| 490 | // FromEncodingParts creates a bit array from the encoding parts. |
| 491 | func FromEncodingParts(words []uint64, lastBitsUsed uint64) (BitArray, error) { |
no outgoing calls
no test coverage detected