wasmtime_memorytype_new function

  1. @Native<Pointer<wasmtime_error_t> Function(Uint64, Bool, Uint64, Bool, Bool, Uint8, Pointer<Pointer<wasm_memorytype_t>>)>(ffi.Uint64, ffi.Bool, ffi.Uint64, ffi.Bool, ffi.Bool, ffi.Uint8, ffi.Pointer<ffi.Pointer<wasm_memorytype_t>>)>()
Pointer<wasmtime_error_t> wasmtime_memorytype_new(
  1. int min,
  2. bool max_present,
  3. int max,
  4. bool is_64,
  5. bool shared,
  6. int page_size_log2,
  7. Pointer<Pointer<wasm_memorytype_t>> ret,
)

\brief Creates a new memory type from the specified parameters.

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

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Uint64,
    ffi.Bool,
    ffi.Uint64,
    ffi.Bool,
    ffi.Bool,
    ffi.Uint8,
    ffi.Pointer<ffi.Pointer<wasm_memorytype_t>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_memorytype_new(
  int min,
  bool max_present,
  int max,
  bool is_64,
  bool shared,
  int page_size_log2,
  ffi.Pointer<ffi.Pointer<wasm_memorytype_t>> ret,
);