MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / deallocate

Method deallocate

aiscript-arena/src/allocator_api.rs:71–76  ·  view source on GitHub ↗
(&self, ptr: NonNull<u8>, layout: Layout)

Source from the content-addressed store, hash-verified

69
70 #[inline]
71 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) {
72 unsafe {
73 self.metrics.mark_external_deallocation(layout.size());
74 self.allocator.deallocate(ptr, layout);
75 }
76 }
77
78 #[inline]
79 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected