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

Method ValueDescWriter

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

Source from the content-addressed store, hash-verified

144
145 protected:
146 ValueDescWriter(MemoryPool* pool, int64_t values_capacity)
147 : values_size_(0),
148 values_capacity_(values_capacity),
149 quoted_(false),
150 saved_values_size_(0),
151 status_(Status::OK()) {
152 status_ &= AllocateResizableBuffer(values_capacity_ * sizeof(*values_), pool)
153 .Value(&values_buffer_);
154 if (status_.ok()) {
155 values_ = reinterpret_cast<ParsedValueDesc*>(values_buffer_->mutable_data());
156 }
157 }
158
159 std::shared_ptr<ResizableBuffer> values_buffer_;
160 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