| 72 | class 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_)); |
nothing calls this directly
no test coverage detected