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. More...
 
const char * name
 The name of the EVMC VM implementation. More...
 
const char * version
 The version of the EVMC VM implementation, e.g. More...
 
evmc_destroy_fn destroy
 Pointer to function destroying the VM instance. More...
 
evmc_execute_fn execute
 Pointer to function executing a code by the VM instance. More...
 
evmc_get_capabilities_fn get_capabilities
 A method returning capabilities supported by the VM instance. More...
 
evmc_set_option_fn set_option
 Optional pointer to function modifying VM's options. More...
 

Detailed Description

The VM instance.

Defines the base struct of the VM implementation.

Definition at line 933 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 941 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 964 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 971 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 983 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 949 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 990 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 957 of file evmc.h.


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