(
&self,
ptr: i32,
store: &mut Store<JavaState>,
)
| 166 | |
| 167 | #[allow(unused)] |
| 168 | pub unsafe fn dealloc<T: Sized>( |
| 169 | &self, |
| 170 | ptr: i32, |
| 171 | store: &mut Store<JavaState>, |
| 172 | ) -> Result<(), Error> { |
| 173 | debug_assert!(ptr > 0); |
| 174 | let len = i32::try_from(mem::size_of::<T>())?; |
| 175 | let wasm_slice = WasmSlice::new(ptr, len); |
| 176 | |
| 177 | self.dealloc_bytes(wasm_slice, store) |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /// This is use to free memory after a function call |
nothing calls this directly
no test coverage detected