package extism

  1. Overview
  2. Docs

Module Val.ArraySource

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

Sourcetype t = Val.t Ctypes.CArray.t

Array of Val.t

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

Get Val.t at index index

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

Set set the Val.t at an index

Sourceval length : t -> int

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

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

Syntax for Val.Array.get

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

Syntax for Val.Array.set

OCaml

Innovation. Community. Security.