Wasmtime
wasmtime_memory_request Struct Reference

Parameters of a request to create a new linear memory. More...

#include <config.h>

Data Fields

const wasm_memorytype_t * ty
 The type of memory being created.
 
size_t minimum
 Minimum size of the memory, in bytes.
 
size_t maximum
 Maximum size of the memory, in bytes, or SIZE_MAX if unbounded.
 
size_t reserved_size_in_bytes
 
size_t guard_size_in_bytes
 
wasmtime_memory_kind_t kind
 The kind of memory being created, see wasmtime_memory_kind_enum.
 

Detailed Description

Parameters of a request to create a new linear memory.

This structure is owned by Wasmtime and is only valid for the duration of the wasmtime_new_memory_callback_t invocation it is passed to. New fields may be appended in future versions.

For more information see the Rust documentation at https://docs.wasmtime.dev/api/wasmtime/struct.MemoryRequest.html

Field Documentation

◆ guard_size_in_bytes

size_t wasmtime_memory_request::guard_size_in_bytes

Number of bytes after the memory allocation that must be left unmapped. A multiple of the system page size.

◆ reserved_size_in_bytes

size_t wasmtime_memory_request::reserved_size_in_bytes

Size of the virtual memory reservation to make for this memory, in bytes. A multiple of the system page size.


The documentation for this struct was generated from the following file: