MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / ~IoBuffer

Method ~IoBuffer

src/io_buffer.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

aligned_freeFunction · 0.50

Tested by

no test coverage detected