WasmerSourceThis 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_OwnedThe object is owned by the caller.
*)| State_RWThe object is accessible by the caller.
*)| State_ConstThe object is accessible by the caller in read-only.
*)| State_Dependent of (unit -> object_state) * object_state dependent_update_funcThe object's state depends on another. The first function is to get the current state, the second function updates it.
*)| State_PassedAwayThe 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.