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

Method ValueDescWriter

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

Source from the content-addressed store, hash-verified

152
153 protected:
154 ValueDescWriter(MemoryPool* pool, int64_t values_capacity)
155 : values_size_(0),
156 values_capacity_(values_capacity),
157 quoted_(false),
158 saved_values_size_(0),
159 status_(Status::OK()) {
160 status_ &= AllocateResizableBuffer(values_capacity_ * sizeof(*values_), pool)
161 .Value(&values_buffer_);
162 if (status_.ok()) {
163 values_ = reinterpret_cast<ParsedValueDesc*>(values_buffer_->mutable_data());
164 }
165 }
166
167 std::shared_ptr<ResizableBuffer> values_buffer_;
168 ParsedValueDesc* values_;

Callers

nothing calls this directly

Calls 5

AllocateResizableBufferFunction · 0.85
OKFunction · 0.50
ValueMethod · 0.45
okMethod · 0.45
mutable_dataMethod · 0.45

Tested by

no test coverage detected