package wasmer

  1. Overview
  2. Docs
type data_type = byte
val data_type : data_type Ctypes.typ
val name : string

The structure base name (without the wasm_ prefix and _vec_t suffix)

type owning_struct = byte

Vectors always take ownership of their elements.

val grab_ownership : owning_struct -> data_type

Take away the ownership.

val to_dependent : data_type -> ((unit -> object_state) * object_state {dependent_update_func}1) -> owning_struct

Transform an element of the vector back to a pointer, which ownership is dependent on this vector.

  • parameter obj

    The element

  • parameter arg

    The ownership callbacks

  • returns

    The new owning structure

OCaml

Innovation. Community. Security.