Module host_function_call

Source

Functions§

call_host_function
Call a host function with the given parameters and return type. This function serializes the function call and its parameters, sends it to the host, and then retrieves the return value.
call_host_function_internal
Internal function to call a host function without generic type parameters. This is used by both the Rust and C APIs to reduce code duplication.
debug_print
Prints a message using OutBAction::DebugPrint. It transmits bytes of a message through several VMExists and, with such, it is slower than print_output_with_host_print.
get_host_return_value
Get a return value from a host function call. This usually requires a host function to be called first using call_host_function_internal. When calling call_host_function<T>, this function is called internally to get the return value.
outb
print_output_with_host_print
Print a message using the host’s print function.