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

Function say_hello_in_java

tests/strings/src/lib.rs:48–56  ·  view source on GitHub ↗
(
    data_ptr: i32,
    data_len: i32,
    response: &mut Owned<WasmSlice>,
)

Source from the content-addressed store, hash-verified

46/// Passed in WasmSlice is owned by caller
47#[no_mangle]
48pub unsafe extern "C" fn say_hello_in_java(
49 data_ptr: i32,
50 data_len: i32,
51 response: &mut Owned<WasmSlice>,
52) {
53 // Technically after this call we "own" the response, but we pass that directly into the next method
54 // which will then own freeing the memory (which is technically handled by the wasmtime-jni bindings)
55 say_hello_to_java(data_ptr, data_len, response)
56}

Callers

nothing calls this directly

Calls 1

say_hello_to_javaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…