MCPcopy Create free account
hub / github.com/apache/arrow / GetReversedBlock

Function GetReversedBlock

cpp/src/arrow/util/bitmap_ops.cc:122–124  ·  view source on GitHub ↗

Get a reverse block of byte(uint8) using offsets, the result can be part of a left block and right block, length indicates the number of bits to be taken from the right block

Source from the content-addressed store, hash-verified

120// part of a left block and right block, length indicates the number of bits
121// to be taken from the right block
122uint8_t GetReversedBlock(uint8_t block_left, uint8_t block_right, uint8_t length) {
123 return ReverseUint8(((block_right << 8) + block_left) >> length);
124}
125
126template <TransferMode mode>
127void TransferBitmap(const uint8_t* data, int64_t offset, int64_t length,

Callers 1

ReverseBlockOffsetsFunction · 0.85

Calls 1

ReverseUint8Function · 0.85

Tested by

no test coverage detected