MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / lift_from_memory

Method lift_from_memory

crates/rust/src/interface.rs:800–804  ·  view source on GitHub ↗
(&mut self, address: &str, ty: &Type, module: &str)

Source from the content-addressed store, hash-verified

798 }
799
800 fn lift_from_memory(&mut self, address: &str, ty: &Type, module: &str) -> String {
801 let mut f = FunctionBindgen::new(self, Vec::new(), module, true, false);
802 let result = abi::lift_from_memory(f.r#gen.resolve, &mut f, address.into(), ty);
803 format!("unsafe {{ {}\n{result} }}", String::from(f.src))
804 }
805
806 fn generate_guest_import_body_sync(
807 &mut self,

Callers 2

generate_payloadMethod · 0.45

Calls 2

newFunction · 0.85
lift_from_memoryFunction · 0.85

Tested by

no test coverage detected