wasmtime_global_get function

  1. @Native<Void Function(Pointer<wasmtime_context_t>, Pointer<wasmtime_global_t>, Pointer<wasmtime_val_t>)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_global_t>, ffi.Pointer<wasmtime_val_t>)>()
void wasmtime_global_get(
  1. Pointer<wasmtime_context_t> store,
  2. Pointer<wasmtime_global_t> global,
  3. Pointer<wasmtime_val_t> out
)

\brief Get the value of the specified global.

\param store the store that owns global \param global the global to get \param out where to store the value in this global.

This function returns ownership of the contents of out, so #wasmtime_val_unroot may need to be called on the value.

Implementation

@ffi.Native<
  ffi.Void Function(
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_global_t>,
    ffi.Pointer<wasmtime_val_t>,
  )
>()
external void wasmtime_global_get(
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<wasmtime_global_t> global,
  ffi.Pointer<wasmtime_val_t> out,
);