MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / EncodingParts

Method EncodingParts

pkg/util/bitarray/bitarray.go:524–526  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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

Callers 3

EncodeBitArrayAscendingFunction · 0.80
EncodeBitArrayDescendingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected