package owi

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module to define externref values in OCaml. You should look in the `example` directory to understand how to use this before reading the code...

type externref =
  1. | E : 'a Type.Id.t * 'a -> externref
module Make_extern_func (V : Func_intf.Value_types) (M : Func_intf.Monad_type) : Func_intf.T_Extern_func with type int32 := V.int32 and type int64 := V.int64 and type float32 := V.float32 and type float64 := V.float64 and type 'a m := 'a M.t
module Func : Func_intf.T with type int32 := Int32.t and type int64 := Int64.t and type float32 := Float32.t and type float64 := Float64.t and type 'a m := 'a
type ref_value =
  1. | Externref of externref option
  2. | Funcref of Func_intf.t option
  3. | Arrayref of unit array option
type t =
  1. | I32 of Int32.t
  2. | I64 of Int64.t
  3. | F32 of Float32.t
  4. | F64 of Float64.t
  5. | Ref of ref_value
val cast_ref : externref -> 'a Type.Id.t -> 'a option
val of_instr : Types.simplified Types.instr -> t
val to_instr : t -> Types.simplified Types.instr
val ref_func : Func.t -> t
val ref_externref : 'a Type.Id.t -> 'a -> t
val ref_is_null : ref_value -> bool
val pp : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.