(pointer: *mut u8, length: usize)
| 63 | /// `ptr`/`len` must come from a prior `alloc` call. |
| 64 | #[unsafe(no_mangle)] |
| 65 | pub unsafe extern "C" fn dealloc(pointer: *mut u8, length: usize) { |
| 66 | if pointer.is_null() || length == 0 { |
| 67 | return; |
| 68 | } |
| 69 | |
| 70 | unsafe { |
| 71 | std::alloc::dealloc(pointer, MemoryLayout::from_size_align_unchecked(length, 1)); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // ─── ABI: per-kind parse entry points ─── |
| 76 |
nothing calls this directly
no outgoing calls
no test coverage detected