package extism

  1. Overview
  2. Docs

Val_array is used for input/output parameters for host functions

Val_array type

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

Get an index

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

Set an index

val length : t -> int

Get the number of items in a Val_array

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

Syntax for get

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

Syntax for set

OCaml

Innovation. Community. Security.