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

Method ReserveData

cpp/src/arrow/array/builder_binary.h:331–334  ·  view source on GitHub ↗

\brief Ensures there is enough allocated capacity to append the indicated number of bytes to the value data buffer without additional allocations

Source from the content-addressed store, hash-verified

329 /// \brief Ensures there is enough allocated capacity to append the indicated
330 /// number of bytes to the value data buffer without additional allocations
331 Status ReserveData(int64_t elements) {
332 ARROW_RETURN_NOT_OK(ValidateOverflow(elements));
333 return value_data_builder_.Reserve(elements);
334 }
335
336 Status FinishInternal(std::shared_ptr<ArrayData>* out) override {
337 // Write final offset (values length)

Callers

nothing calls this directly

Calls 2

ValidateOverflowFunction · 0.70
ReserveMethod · 0.45

Tested by

no test coverage detected