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

Method new

wasmtime-jni/src/ty/wasm_alloc.rs:188–193  ·  view source on GitHub ↗
(wasm_alloc: &'w WasmAlloc, wasm_slice: WasmSlice)

Source from the content-addressed store, hash-verified

186
187impl<'w> WasmSliceWrapper<'w> {
188 pub fn new(wasm_alloc: &'w WasmAlloc, wasm_slice: WasmSlice) -> Self {
189 Self {
190 wasm_alloc,
191 wasm_slice,
192 }
193 }
194
195 /// Safety, the returned array is uninitialized
196 #[allow(clippy::mut_from_ref)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected