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

Method resize

bolt/vector/ComplexVector.h:599–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597 }
598
599 void resize(vector_size_t size, bool setNotNull = true) override {
600 if (BaseVector::length_ < size) {
601 BaseVector::resizeIndices(length_, size, pool_, offsets_, &rawOffsets_);
602 BaseVector::resizeIndices(length_, size, pool_, sizes_, &rawSizes_);
603 }
604 BaseVector::resize(size, setNotNull);
605 }
606
607 // Its the caller responsibility to make sure that `offsets_` and `sizes_` are
608 // safe to write at index i, i.ex not shared, or not large enough.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected