package wasmer
Module Extern.VecSource
include module type of struct include DeclareVec(V) end
The vector's data type
The vector's Ctypes data type declaration
The vector name (without the _t)
The C unique (abstract) base type for the structure. the structure type is therefore t structure.
The Ctypes definition of the C structure.
The raw size field of the structure
The raw data field of the structure
This structure maintains an ownership status. See also WasmerBindings.OwnableObject.
include module type of struct include OwnableObject(O) end
The owning structure type.
Make a new owning structure from a pointer. See also WasmerBindings.OwnableObject.make_from_unsafe.
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 :
DeclareVec(V).t Ctypes.structure Ctypes.ptr ->
object_state ->
O.d ->
sMake a new owning structure from a pointer, with an additional data. See also WasmerBindings.OwnableObject.make_from_unsafe_data.
val make_from_unsafe_data :
DeclareVec(V).t Ctypes.structure Ctypes.ptr ->
object_state ->
O.d ->
sMake 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.
Duplicates the current vector. No guarantee is made on the deep-ness of the copy.
Makes a vector from an array, taking ownership of the elements.
Makes a vector from a list, taking ownership of the elements.
get_element vec i gets the ith element of vec with the correct WasmerBindings.object_state.Dependent ownership state.
get_element vec i gets the ith element of vec with the correct WasmerBindings.object_state.Dependent ownership state.