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

Method SetBufferSize

cpp/src/arrow/io/buffered.cc:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182 }
183
184 Status SetBufferSize(int64_t new_buffer_size) {
185 std::lock_guard<std::mutex> guard(lock_);
186 if (new_buffer_size <= 0) {
187 return Status::Invalid("Buffer size should be positive");
188 }
189 if (buffer_pos_ >= new_buffer_size) {
190 // If the buffer is shrinking, first flush to the raw OutputStream
191 RETURN_NOT_OK(FlushUnlocked());
192 }
193 return ResizeBuffer(new_buffer_size);
194 }
195
196 std::shared_ptr<OutputStream> raw() const { return raw_; }
197

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected