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

Method lower_to_memory

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

Source from the content-addressed store, hash-verified

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();
1638
1639 let mut f = FunctionBindgen::new(
1640 self,
1641 "",
1642 &FunctionKind::AsyncFreestanding,
1643 boxed,
1644 vec![],
1645 ParameterType::ABI,
1646 None,
1647 );
1648 abi::lower_to_memory(
1649 f.interface_gen.resolve,
1650 &mut f,
1651 address.into(),
1652 value.into(),
1653 ty,
1654 );
1655
1656 f.src
1657 }
1658}
1659
1660impl<'a> CoreInterfaceGenerator<'a> for InterfaceGenerator<'a> {

Callers 1

Calls 2

newFunction · 0.85
lower_to_memoryFunction · 0.85

Tested by

no test coverage detected