MCPcopy Create free account
hub / github.com/apache/arrow-rs / drop

Method drop

arrow-buffer/src/buffer/mutable.rs:1096–1101  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1094
1095impl Drop for MutableBuffer {
1096 fn drop(&mut self) {
1097 if self.layout.size() != 0 {
1098 // Safety: data was allocated with standard allocator with given layout
1099 unsafe { std::alloc::dealloc(self.data.as_ptr() as _, self.layout) };
1100 }
1101 }
1102}
1103
1104impl PartialEq for MutableBuffer {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected