package wasmer
Install
Dune Dependency
Authors
Maintainers
Sources
md5=be37208390097ed6b7c7d9ede3c1a2a7
sha512=2422c3b32ae053a9f39336b1c9829ec9a508dd7d303e9a68853287ab7dea90b7cbc57f54a04b20a9fb6217527e1c89e8f806349407db5f8679d90fdf7dd3038e
doc/wasmer/Wasmer/index.html
Module Wasmer
Source
This module contains all bindings. Currently, only bindings to functions in wasm.h have been implemented.
A C function returned NULL where a non-null value was required
A pointer was accessed but its ownership realtive to the caller was not high enough. For example, trying to get a pointer using get_ptr while the pointer was given away will raise this exception.
type object_state =
| State_Owned
(*The object is owned by the caller.
*)| State_RW
(*The object is accessible by the caller.
*)| State_Const
(*The object is accessible by the caller in read-only.
*)| State_Dependent of (unit -> object_state) * object_state dependent_update_func
(*The object's state depends on another. The first function is to get the current state, the second function updates it.
*)| State_PassedAway
(*The current pointer has been given away.
*)
The state of the ownership of the pointed-to object.
Gets the real state of the object_state. Never returns WasmerBindings.object_state.State_Dependent
.
Gets the real state of the object_state, and reduces the ownership to read-only if required. This is the same as get_real_state st
if the result is not WasmerBindings.object_state.State_Owned
or WasmerBindings.object_state.State_RW
, and is WasmerBindings.object_state.State_Const
otherwise.
The metadata type for ownable objects
The metadata type for structure-declaring objects
The metadata type for vector structures
Ownable objects are the basic structure that maintains an ownership state on C objects.
The base WASM objects, declared in wasm.h
as WASM_DECLARE_OWN
.
The vector type, declared in the C API with the WASM_DECLARE_VEC
macro. Vectors always get ownership of their data.
Embedders may provide custom functions for manipulating configs.