MCPcopy Create free account
hub / github.com/bluejekyll/wasmtime-java / __dealloc_bytes

Function __dealloc_bytes

wasmtime-jni-exports/src/lib.rs:44–50  ·  view source on GitHub ↗

[cfg(target_arch = "wasm32")]

(ptr: u32, size: u32)

Source from the content-addressed store, hash-verified

42#[no_mangle]
43//#[cfg(target_arch = "wasm32")]
44pub unsafe extern "C" fn __dealloc_bytes(ptr: u32, size: u32) {
45 if ptr != 0 && size != 0 {
46 let layout =
47 Layout::array::<u8>(size as usize).expect("u8 should definitely have a layout");
48 alloc::dealloc(ptr as *mut u8, layout);
49 }
50}
51
52/// Data that was allocated inside a WASM module
53pub trait WasmAllocated: Sized {

Callers 2

replaceMethod · 0.85
dropMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…