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

Function ReserveData

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

831 /// \brief Ensures there is enough allocated capacity to append the indicated
832 /// number of bytes to the value data buffer without additional allocations
833 Status ReserveData(int64_t elements) {
834 ARROW_RETURN_NOT_OK(ValidateOverflow(elements));
835 return byte_builder_.Reserve(elements);
836 }
837
838 void Reset() override;
839 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