package wasmer
Install
Dune Dependency
Authors
Maintainers
Sources
md5=be37208390097ed6b7c7d9ede3c1a2a7
sha512=2422c3b32ae053a9f39336b1c9829ec9a508dd7d303e9a68853287ab7dea90b7cbc57f54a04b20a9fb6217527e1c89e8f806349407db5f8679d90fdf7dd3038e
doc/wasmer/Wasmer/Externtype/index.html
Module Wasmer.Externtype
Source
include module type of struct include DeclareType(Externtype_T) end
include module type of struct include DeclareOwn(Externtype_T) end
The C name of the structure without the _t
suffix.
The C unique (abstract) base type for the structure. the structure type is therefore t structure
.
The Ctypes definition of the C structure.
This structure maintains an ownership status. See also WasmerBindings.OwnableObject
.
include module type of struct include OwnableObject(O) end
The owning structure type.
val make_from_raise :
DeclareOwn(Externtype_T).t Ctypes.structure Ctypes.ptr ->
object_state ->
s
Make a new owning structure from a pointer. See also WasmerBindings.OwnableObject.make_from_unsafe
.
val make_from_unsafe :
DeclareOwn(Externtype_T).t Ctypes.structure Ctypes.ptr ->
object_state ->
s
Make a new owning structure from a pointer. Does not raise an exception if NULL is given. See also WasmerBindings.OwnableObject.make_from_raise
.
val make_from_raise_data :
DeclareOwn(Externtype_T).t Ctypes.structure Ctypes.ptr ->
object_state ->
Externtype_T.d ->
s
Make a new owning structure from a pointer, with an additional data. See also WasmerBindings.OwnableObject.make_from_unsafe_data
.
val make_from_unsafe_data :
DeclareOwn(Externtype_T).t Ctypes.structure Ctypes.ptr ->
object_state ->
Externtype_T.d ->
s
Make a new owning structure from a pointer, with an additional data. Does not raise an exception if NULL is given. See also WasmerBindings.OwnableObject.make_from_raise_data
.
Returns the current ownership state.
Sets the current ownership state to WasmerBindings.object_state.State_PassedAway
. Ignores the current ownership.
grab_ownership self
gives the ownership of the pointed object to the caller code. It is equivalent to let p = get_ptr self in lose_ownership self; p
, but with additional checks for the current ownership.
Deletes the object if required, then sets the ownership to WasmerBindings.object_state.State_Owned
and returns the pointer. This is only to be used in own-out function arguments in the C API or equivalent.
Returns Ctypes.is_null
on the underlying pointer, ignoring the current ownership state.
Returns the underlying pointer, requiring a sufficient ownership state.
Returns the underlying pointer, requiring a sufficient ownership state.
Inherently unsafe function that returns a given-away pointer.