MCPcopy Create free account
hub / github.com/bytedance/bolt / makeIndicesMutable

Method makeIndicesMutable

bolt/vector/DecodedVector.cpp:269–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void DecodedVector::makeIndicesMutable() {
270 if (indicesNotCopied()) {
271 copiedIndices_.resize(size_ > 0 ? size_ : 1);
272 memcpy(
273 &copiedIndices_[0],
274 indices_,
275 copiedIndices_.size() * sizeof(copiedIndices_[0]));
276 indices_ = &copiedIndices_[0];
277 }
278}
279
280void DecodedVector::setFlatNulls(
281 const BaseVector& vector,

Callers

nothing calls this directly

Calls 3

memcpyFunction · 0.85
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected