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