| 56 | /// the provided buffer until Finish/Reset are called. |
| 57 | /// The buffer is not resized. |
| 58 | explicit BufferBuilder(std::shared_ptr<ResizableBuffer> buffer, |
| 59 | MemoryPool* pool = default_memory_pool(), |
| 60 | int64_t alignment = kDefaultBufferAlignment) |
| 61 | : buffer_(std::move(buffer)), |
| 62 | pool_(pool), |
| 63 | data_(buffer_->mutable_data()), |
| 64 | capacity_(buffer_->capacity()), |
| 65 | size_(buffer_->size()), |
| 66 | alignment_(alignment) {} |
| 67 | |
| 68 | /// \brief Resize the buffer to the nearest multiple of 64 bytes |
| 69 | /// |
no test coverage detected