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

Method store_to_args

wasmtime-jni/src/ty/byte_slice.rs:96–101  ·  view source on GitHub ↗
(self, args: &mut Vec<Val>)

Source from the content-addressed store, hash-verified

94 }
95
96 fn store_to_args(self, args: &mut Vec<Val>) {
97 let ptr = self.ptr();
98 let len = self.len();
99 args.push(Val::from(ptr as i32));
100 args.push(Val::from(len as i32));
101 }
102
103 fn load_from_args(mut args: impl Iterator<Item = Val>) -> Result<Self, anyhow::Error> {
104 let ptr = args

Callers

nothing calls this directly

Calls 3

ptrMethod · 0.80
lenMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected