MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / drop

Method drop

nodedb/src/data/io/aligned_buf.rs:82–86  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

80
81impl Drop for AlignedBuf {
82 fn drop(&mut self) {
83 if !self.ptr.is_null() {
84 unsafe { std::alloc::dealloc(self.ptr, self.layout) };
85 }
86 }
87}
88
89/// Round `value` up to the next multiple of `align` (power of two).

Callers

nothing calls this directly

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected