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