diff options
Diffstat (limited to 'src/wasmrt.h')
| -rw-r--r-- | src/wasmrt.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wasmrt.h b/src/wasmrt.h index 8149590..ca1efdd 100644 --- a/src/wasmrt.h +++ b/src/wasmrt.h @@ -218,6 +218,19 @@ size_t wasm_rt_memory_loada_unchecked(struct wasm_rt_memory_t const *mem, uint32_t addr, char *buf, size_t sz); /** + * Loads 16-bit values from memory. + */ +void wasm_rt_memory_load16v(struct wasm_rt_memory_t const *mem, uint32_t addr, + uint16_t *values, uint32_t len); + +/** + * Loads 16-bit values from memory without bounds checks. + */ +void wasm_rt_memory_load16v_unchecked(struct wasm_rt_memory_t const *mem, + uint32_t addr, uint16_t *values, + uint32_t len); + +/** * Stores bytes to memory. */ void wasm_rt_memory_store(struct wasm_rt_memory_t *mem, uint32_t addr, |
