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

Method PresizedDataWriter

cpp/src/arrow/csv/parser.cc:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72class PresizedDataWriter {
73 public:
74 PresizedDataWriter(MemoryPool* pool, uint32_t size)
75 : parsed_size_(0), parsed_capacity_(size) {
76 parsed_buffer_ = *AllocateResizableBuffer(parsed_capacity_, pool);
77 parsed_ = parsed_buffer_->mutable_data();
78 }
79
80 void Finish(std::shared_ptr<Buffer>* out_parsed) {
81 ARROW_CHECK_OK(parsed_buffer_->Resize(parsed_size_));

Callers

nothing calls this directly

Calls 2

AllocateResizableBufferFunction · 0.85
mutable_dataMethod · 0.45

Tested by

no test coverage detected