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

Function Append

cpp/src/arrow/buffer_builder.h:113–119  ·  view source on GitHub ↗

\brief Append the given data to the buffer The buffer is automatically expanded if necessary.

Source from the content-addressed store, hash-verified

111 ///
112 /// The buffer is automatically expanded if necessary.
113 Status Append(const void* data, const int64_t length) {
114 if (ARROW_PREDICT_FALSE(size_ + length > capacity_)) {
115 ARROW_RETURN_NOT_OK(Resize(GrowByFactor(capacity_, size_ + length), false));
116 }
117 UnsafeAppend(data, length);
118 return Status::OK();
119 }
120
121 /// \brief Append the given data to the buffer
122 ///

Callers 1

AdvanceFunction · 0.70

Calls 7

GrowByFactorFunction · 0.85
ResizeFunction · 0.70
UnsafeAppendFunction · 0.70
OKFunction · 0.70
ReserveFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected