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

Function reverse_bytes_in_java

tests/slices/src/lib.rs:68–76  ·  view source on GitHub ↗
(
    data_ptr: i32,
    data_len: i32,
    result: &mut Owned<WasmSlice>,
)

Source from the content-addressed store, hash-verified

66/// Assumes that the data input is properly allocated slice, and the result has an allocated WasmSlice object at the pointer.
67#[no_mangle]
68pub unsafe extern "C" fn reverse_bytes_in_java(
69 data_ptr: i32,
70 data_len: i32,
71 result: &mut Owned<WasmSlice>,
72) {
73 let data = WasmSlice::borrowed(data_ptr, &data_len);
74 println!("slices::reverse_bytes_in_java: {:?}", *data);
75 reverse_bytes_java(data_ptr, data_len, result);
76}
77
78// #[cfg(test)]
79// mod tests {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…