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

Function lift_from_memory

crates/core/src/abi.rs:852–861  ·  view source on GitHub ↗
(
    resolve: &Resolve,
    bindgen: &mut B,
    address: B::Operand,
    ty: &Type,
)

Source from the content-addressed store, hash-verified

850}
851
852pub fn lift_from_memory<B: Bindgen>(
853 resolve: &Resolve,
854 bindgen: &mut B,
855 address: B::Operand,
856 ty: &Type,
857) -> B::Operand {
858 let mut generator = Generator::new(resolve, bindgen);
859 generator.read_from_memory(ty, address, Default::default());
860 generator.stack.pop().unwrap()
861}
862
863/// Used in a similar manner as the `Interface::call` function except is
864/// used to generate the `post-return` callback for `func`.

Callers 5

lift_from_memoryMethod · 0.85
future_or_streamMethod · 0.85
importMethod · 0.85
lift_from_memoryMethod · 0.85
lift_from_memoryMethod · 0.85

Calls 2

newFunction · 0.85
read_from_memoryMethod · 0.80

Tested by

no test coverage detected