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

Method lift_from_memory

crates/csharp/src/interface.rs:1619–1634  ·  view source on GitHub ↗
(&mut self, address: &str, ty: &Type)

Source from the content-addressed store, hash-verified

1617 }
1618
1619 fn lift_from_memory(&mut self, address: &str, ty: &Type) -> (String, String) {
1620 let boxed: Box<[String]> = Vec::new().into_boxed_slice();
1621
1622 let mut f = FunctionBindgen::new(
1623 self,
1624 "",
1625 &FunctionKind::AsyncFreestanding,
1626 boxed,
1627 vec![],
1628 ParameterType::ABI,
1629 None,
1630 );
1631 let result = abi::lift_from_memory(f.interface_gen.resolve, &mut f, address.into(), ty);
1632
1633 (f.src, result)
1634 }
1635
1636 fn lower_to_memory(&mut self, address: &str, value: &str, ty: &Type) -> String {
1637 let boxed: Box<[String]> = Vec::new().into_boxed_slice();

Callers 2

gen_import_srcMethod · 0.45

Calls 2

newFunction · 0.85
lift_from_memoryFunction · 0.85

Tested by

no test coverage detected