package ctypes

  1. Overview
  2. Docs
type !'a t = 'a carray
val get : 'a t -> int -> 'a
val set : 'a t -> int -> 'a -> unit
val unsafe_get : 'a t -> int -> 'a
val unsafe_set : 'a t -> int -> 'a -> unit
val of_list : 'a typ -> 'a list -> 'a t
val to_list : 'a t -> 'a list
val length : 'a t -> int
val start : 'a t -> 'a ptr
val from_ptr : 'a ptr -> int -> 'a t
val make : ?finalise:('a t -> unit) -> 'a typ -> ?initial:'a -> int -> 'a t
val element_type : 'a t -> 'a typ
OCaml

Innovation. Community. Security.