| 945 | void clear_scratch() { scratch_ = buf_; } |
| 946 | |
| 947 | void clear_allocator() { |
| 948 | if (own_allocator_ && allocator_) { delete allocator_; } |
| 949 | allocator_ = nullptr; |
| 950 | own_allocator_ = false; |
| 951 | } |
| 952 | |
| 953 | void clear_buffer() { |
| 954 | if (buf_) Deallocate(allocator_, buf_, reserved_); |