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

Method lower_to_memory

crates/moonbit/src/async_support.rs:505–515  ·  view source on GitHub ↗
(&mut self, address: &str, value: &str, ty: &Type, _module: &str)

Source from the content-addressed store, hash-verified

503 }
504
505 fn lower_to_memory(&mut self, address: &str, value: &str, ty: &Type, _module: &str) -> String {
506 let mut f = FunctionBindgen::new(self, Box::new([]));
507 abi::lower_to_memory(
508 f.interface_gen.resolve,
509 &mut f,
510 address.into(),
511 value.into(),
512 ty,
513 );
514 f.src
515 }
516
517 fn malloc_memory(&mut self, address: &str, length: &str, ty: &Type) -> String {
518 let size = self.world_gen.sizes.size(ty).size_wasm32();

Calls 2

newFunction · 0.85
lower_to_memoryFunction · 0.85

Tested by

no test coverage detected