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

Method lower_to_memory

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

Source from the content-addressed store, hash-verified

768 }
769
770 fn lower_to_memory(&mut self, address: &str, value: &str, ty: &Type, module: &str) -> String {
771 let mut f = FunctionBindgen::new(self, Vec::new(), module, true, false);
772 abi::lower_to_memory(f.r#gen.resolve, &mut f, address.into(), value.into(), ty);
773 format!("unsafe {{ {} }}", String::from(f.src))
774 }
775
776 fn deallocate_lists(
777 &mut self,

Callers 2

generate_payloadMethod · 0.45

Calls 2

newFunction · 0.85
lower_to_memoryFunction · 0.85

Tested by

no test coverage detected