| 21 | } |
| 22 | |
| 23 | IoBuffer::~IoBuffer() { |
| 24 | assert((data_ == nullptr) == (size_ == 0) && |
| 25 | "IoBuffer invariant violated: data_ and size_ must be consistent"); |
| 26 | aligned_free(data_); |
| 27 | } |
| 28 | |
| 29 | IoBuffer::IoBuffer(IoBuffer&& other) : data_(other.data_), size_(other.size_) { |
| 30 | other.data_ = nullptr; |
nothing calls this directly
no test coverage detected