package extism

  1. Overview
  2. Docs

Val.Array is used for input/output parameters for host functions

Array of Val.t

val get : t -> int -> Val.t

Get Val.t at index index

val set : t -> int -> Val.t -> unit

Set set the Val.t at an index

val length : t -> int

Get the number of items in a Val.Array.t

val (.$[]) : t -> int -> Val.t

Syntax for Val.Array.get

val (.$[]<-) : t -> int -> Val.t -> unit

Syntax for Val.Array.set

OCaml

Innovation. Community. Security.