MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / copyFromNullBits

Method copyFromNullBits

src/common/null_mask.cpp:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145bool NullMask::copyFromNullBits(const uint64_t* srcNullEntries, uint64_t srcOffset,
146 uint64_t dstOffset, uint64_t numBitsToCopy, bool invert) {
147 DASSERT(dstOffset + numBitsToCopy <= getNumNullBits(data));
148 if (copyNullMask(srcNullEntries, srcOffset, this->data.data(), dstOffset, numBitsToCopy,
149 invert)) {
150 this->mayContainNulls = true;
151 return true;
152 }
153 return false;
154}
155
156void NullMask::setNullFromRange(uint64_t offset, uint64_t numBitsToSet, bool isNull) {
157 if (isNull) {

Callers 4

writeSegmentMethod · 0.80
copyFromBufferMethod · 0.80
ArrowNullMaskTreeMethod · 0.80
setNullFromBitsMethod · 0.80

Calls 2

getNumNullBitsFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected