package extism

  1. Overview
  2. Docs

Val_type enumerates the available Wasm types, this should only be used when implementing host functions

type t =
  1. | I32
  2. | I64
  3. | F32
  4. | F64
  5. | V128
  6. | FuncRef
  7. | ExternRef
    (*

    Value type

    *)
val ptr : t

An alias for I64 to signify an Extism pointer value

val of_int : int -> t

Convert from int to t, raises Invalid_argument if the integer isn't valid

val to_int : t -> int

Convert from t to int

OCaml

Innovation. Community. Security.