Export API wasm_runtime_enlarge_memory (#3569)

Export API wasm_runtime_enlarge_memory to support memory growth.
This commit is contained in:
Benbuck Nason
2024-06-25 20:07:16 -07:00
committed by GitHub
parent 6754b62195
commit 74dbafc699
2 changed files with 24 additions and 0 deletions

View File

@ -1842,6 +1842,10 @@ WASM_RUNTIME_API_EXTERN bool
wasm_runtime_is_import_global_linked(const char *module_name,
const char *global_name);
WASM_RUNTIME_API_EXTERN bool
wasm_runtime_enlarge_memory(wasm_module_inst_t module_inst,
uint32_t inc_page_count);
typedef enum {
INTERNAL_ERROR,
MAX_SIZE_REACHED,