wasmtime_memorytype_maximum function

  1. @Native<Bool Function(Pointer<wasm_memorytype_t>, Pointer<Uint64>)>(ffi.Pointer<wasm_memorytype_t>, ffi.Pointer<ffi.Uint64>)>()
bool wasmtime_memorytype_maximum(
  1. Pointer<wasm_memorytype_t> ty,
  2. Pointer<Uint64> max
)

\brief Returns the maximum size, in pages, of the specified memory type.

If this memory type doesn't have a maximum size listed then false is returned. Otherwise true is returned and the max pointer is filled in with the specified maximum size, in pages.

Note that this function is preferred over #wasm_memorytype_limits for compatibility with the memory64 proposal.

Implementation

@ffi.Native<
  ffi.Bool Function(ffi.Pointer<wasm_memorytype_t>, ffi.Pointer<ffi.Uint64>)
>()
external bool wasmtime_memorytype_maximum(
  ffi.Pointer<wasm_memorytype_t> ty,
  ffi.Pointer<ffi.Uint64> max,
);