capnp

OCaml code generation plugin for the Cap'n Proto serialization framework
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library capnp
Module Capnp . Runtime . InnerArray
type ro = Message.ro
type rw = Message.rw
type ('cap, 'a, 'arr) t = {
mutable length : int;
mutable storage : 'arr option;
get_unsafe : 'arr -> int -> 'a;
set_unsafe : 'arr -> int -> 'a -> unit;
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