package capnp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module InnerArray. This is not intended for public use; you are looking for module Array.

type ro = Message.ro
type rw = Message.rw
type ('cap, 'a, 'arr) t = {
  1. mutable length : int;
  2. mutable storage : 'arr option;
  3. get_unsafe : 'arr -> int -> 'a;
  4. set_unsafe : 'arr -> int -> 'a -> unit;
  5. init : int -> 'arr;
}
val length : ('cap, 'a, 'arr) t -> int
val get : ('cap, 'a, 'arr) t -> int -> 'a
val set : (rw, 'a, 'arr) t -> int -> 'a -> unit
val init : (rw, 'a, 'arr) t -> int -> unit
val to_storage : ('cap, 'a, 'arr) t -> 'arr option
val invalid_get_unsafe : 'arr -> int -> 'a
val invalid_set_unsafe : 'arr -> int -> 'a -> unit
val invalid_init : int -> 'arr
OCaml

Innovation. Community. Security.