EVMC
evmc_vm Struct Reference

The VM instance. More...

#include <evmc.h>

Public Attributes

const int abi_version
 EVMC ABI version implemented by the VM instance.
 
const char * name
 The name of the EVMC VM implementation.
 
const char * version
 The version of the EVMC VM implementation, e.g.
 
evmc_destroy_fn destroy
 Pointer to function destroying the VM instance.
 
evmc_execute_fn execute
 Pointer to function executing a code by the VM instance.
 
evmc_get_capabilities_fn get_capabilities
 A method returning capabilities supported by the VM instance.
 
evmc_set_option_fn set_option
 Optional pointer to function modifying VM's options.
 

Detailed Description

The VM instance.

Defines the base struct of the VM implementation.

Definition at line 1133 of file evmc.h.

Member Data Documentation

◆ abi_version

const int evmc_vm::abi_version

EVMC ABI version implemented by the VM instance.

Can be used to detect ABI incompatibilities. The EVMC ABI version represented by this file is in EVMC_ABI_VERSION.

Definition at line 1141 of file evmc.h.

◆ destroy

evmc_destroy_fn evmc_vm::destroy

Pointer to function destroying the VM instance.

This is a mandatory method and MUST NOT be set to NULL.

Definition at line 1164 of file evmc.h.

◆ execute

evmc_execute_fn evmc_vm::execute

Pointer to function executing a code by the VM instance.

This is a mandatory method and MUST NOT be set to NULL.

Definition at line 1171 of file evmc.h.

◆ get_capabilities

evmc_get_capabilities_fn evmc_vm::get_capabilities

A method returning capabilities supported by the VM instance.

The value returned MAY change when different options are set via the set_option() method.

A Client SHOULD only rely on the value returned if it has queried it after it has called the set_option().

This is a mandatory method and MUST NOT be set to NULL.

Definition at line 1183 of file evmc.h.

◆ name

const char* evmc_vm::name

The name of the EVMC VM implementation.

It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this implies ASCII encoding is also allowed).

Definition at line 1149 of file evmc.h.

◆ set_option

evmc_set_option_fn evmc_vm::set_option

Optional pointer to function modifying VM's options.

If the VM does not support this feature the pointer can be NULL.

Definition at line 1190 of file evmc.h.

◆ version

const char* evmc_vm::version

The version of the EVMC VM implementation, e.g.

"1.2.3b4".

It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this implies ASCII encoding is also allowed).

Definition at line 1157 of file evmc.h.


The documentation for this struct was generated from the following file: