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

Function greet

tests/strings/src/lib.rs:15–20  ·  view source on GitHub ↗
(name_ptr: i32, name_len: i32)

Source from the content-addressed store, hash-verified

13/// Passed in WasmSlice is owned by caller
14#[no_mangle]
15pub unsafe extern "C" fn greet(name_ptr: i32, name_len: i32) {
16 let name = WasmSlice::borrowed(name_ptr, &name_len);
17 let name = name.from_utf8_lossy();
18
19 println!("Hello, {}!", name);
20}
21
22/// # Safety
23/// Passed in WasmSlice is owned by caller

Callers

nothing calls this directly

Calls 1

from_utf8_lossyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…