Struct 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¶
Pointer to raw WebAssembly binary
variable export_count¶
Export count
variable exports¶
Export registry
variable func_count¶
Total function count
variable func_idx¶
Function index
variable funcs¶
Function registry
variable has_start_func¶
True if module has start function
variable import_func_count¶
Imported host function count
variable name_len¶
Export name length
variable name_offset¶
Export name offset
variable size¶
Size of binary in bytes
variable start_func_idx¶
Start function index
variable table_element_count¶
Element count
variable table_elements¶
Element table for indirect calls
The documentation for this class was generated from the following file src/syntropic/vm/syn_wasm.h