wasmtime_memory_grow function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_context_t> , Pointer<wasmtime_memory_t> , Uint64, Pointer<Uint64> )>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_memory_t>, ffi.Uint64, ffi.Pointer<ffi.Uint64>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasmtime_memory_t> memory, - int delta,
- Pointer<
Uint64> prev_size,
\brief Attempts to grow the specified memory by delta pages.
\param store the store that owns memory
\param memory the memory to grow
\param delta the number of pages to grow by
\param prev_size where to store the previous size of memory
If memory cannot be grown then prev_size is left unchanged and an error is
returned. Otherwise prev_size is set to the previous size of the memory, in
WebAssembly pages, and NULL is returned.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_memory_t>,
ffi.Uint64,
ffi.Pointer<ffi.Uint64>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_memory_grow(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasmtime_memory_t> memory,
int delta,
ffi.Pointer<ffi.Uint64> prev_size,
);