Skip to content

Struct SYN_WASM_Module

ClassList > SYN_WASM_Module

Parsed WebAssembly module header and export registry.

  • #include <syn_wasm.h>

Public Attributes

Type Name
const uint8_t * bytes
uint16_t export_count
struct SYN_WASM_Module exports
uint16_t func_count
uint16_t func_idx
SYN_WASM_FuncDef funcs
bool has_start_func
uint16_t import_func_count
uint16_t name_len
uint32_t name_offset
uint32_t size
uint32_t start_func_idx
uint16_t table_element_count
uint16_t table_elements

Public Attributes Documentation

variable bytes

const uint8_t* SYN_WASM_Module::bytes;

Pointer to raw WebAssembly binary


variable export_count

uint16_t SYN_WASM_Module::export_count;

Export count


variable exports

struct SYN_WASM_Module SYN_WASM_Module::exports[SYN_WASM_MAX_FUNCTIONS];

Export registry


variable func_count

uint16_t SYN_WASM_Module::func_count;

Total function count


variable func_idx

uint16_t SYN_WASM_Module::func_idx;

Function index


variable funcs

SYN_WASM_FuncDef SYN_WASM_Module::funcs[SYN_WASM_MAX_FUNCTIONS];

Function registry


variable has_start_func

bool SYN_WASM_Module::has_start_func;

True if module has start function


variable import_func_count

uint16_t SYN_WASM_Module::import_func_count;

Imported host function count


variable name_len

uint16_t SYN_WASM_Module::name_len;

Export name length


variable name_offset

uint32_t SYN_WASM_Module::name_offset;

Export name offset


variable size

uint32_t SYN_WASM_Module::size;

Size of binary in bytes


variable start_func_idx

uint32_t SYN_WASM_Module::start_func_idx;

Start function index


variable table_element_count

uint16_t SYN_WASM_Module::table_element_count;

Element count


variable table_elements

uint16_t SYN_WASM_Module::table_elements[64];

Element table for indirect calls



The documentation for this class was generated from the following file src/syntropic/vm/syn_wasm.h