Type Definition ssvm_evmc_sys::evmc_execute_fn[][src]

pub type evmc_execute_fn = Option<unsafe extern "C" fn(instance: *mut evmc_instance, context: *mut evmc_context, rev: evmc_revision, msg: *const evmc_message, code: *const u8, code_size: usize) -> evmc_result>;
Expand description

Executes the given code using the input from the message.

This function MAY be invoked multiple times for a single VM instance.

@param instance The VM instance. This argument MUST NOT be NULL. @param context The pointer to the Host execution context to be passed to the Host interface methods (::evmc_host_interface). This argument MUST NOT be NULL unless the @p instance has the ::EVMC_CAPABILITY_PRECOMPILES capability. @param rev The requested EVM specification revision. @param msg The call parameters. See ::evmc_message. This argument MUST NOT be NULL. @param code The reference to the code to be executed. This argument MAY be NULL. @param code_size The length of the code. If @p code is NULL this argument MUST be 0. @return The execution result.