[−][src]Macro holochain_wasmer_guest::host_args
given a guest allocation pointer and a type that implements TryFrom
- restore SerializedBytes from the guest pointer
- try to deserialize the given type from the restored SerializedBytes
- if the deserialization fails, short circuit (return early) with a WasmError
- if everything is Ok, return the restored data as a native rust type inside the guest this works by assuming the host as already populated the guest pointer with the correct data ahead of time