package extism

  1. Overview
  2. Docs

Module Extism.Val_arraySource

Val_array is used for input/output parameters for host functions

Sourcetype t = Val.t Ctypes.CArray.t

Val_array type

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

Get an index

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

Set an index

Sourceval length : t -> int

Get the number of items in a Val_array

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

Syntax for get

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

Syntax for set

OCaml

Innovation. Community. Security.