package capnp

  1. Overview
  2. Docs
type storage_t
type storage_descr_t = {
  1. segment : storage_t;
  2. bytes_consumed : int;
}
type -'cap segment_t
type -'cap t
val create : int -> rw t
val release : 'cap t -> unit
val num_segments : 'cap t -> int
val total_size : 'cap t -> int
val total_alloc_size : 'cap t -> int
val get_segment : 'cap t -> int -> 'cap segment_t
val readonly : 'cap t -> ro t
val of_storage : storage_t list -> rw t
val to_storage : 'cap t -> storage_descr_t list
val with_message : 'cap t -> f:('cap t -> 'a) -> 'a
OCaml

Innovation. Community. Security.