[][src]Function holochain_wasmer_guest::__deallocate_return_value

#[no_mangle]pub extern "C" fn __deallocate_return_value(return_allocation_ptr: RemotePtr)

when we return an AllocationPtr(serialized_bytes).as_remote_ptr() to the host there is still a bunch of SerializedBytes sitting in the wasm memory the host needs to read these bytes out of memory to get the return value from the guest but the host then needs to tell the guest that memory can be freed this function allows the host to notify the guest that it is finished with a RemotePtr that it received from the return of a guest function call.