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

Function ReserveData

cpp/src/arrow/array/builder_binary.h:835–838  ·  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

833 /// \brief Ensures there is enough allocated capacity to append the indicated
834 /// number of bytes to the value data buffer without additional allocations
835 Status ReserveData(int64_t elements) {
836 ARROW_RETURN_NOT_OK(ValidateOverflow(elements));
837 return byte_builder_.Reserve(elements);
838 }
839
840 void Reset() override;
841 Status Resize(int64_t capacity) override;

Callers 3

AppendArraySliceMethod · 0.85
AppendValuesMethod · 0.85
AppendArraySliceMethod · 0.85

Calls 2

ValidateOverflowFunction · 0.70
ReserveMethod · 0.45

Tested by

no test coverage detected