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 . BuilderOps . Make . ROM . Message
type storage_t = ROM.Message.storage_t
type storage_descr_t = ROM.Message.storage_descr_t = {
segment : storage_t;
bytes_consumed : int;
}
type 'cap t = 'cap ROM.Message.t
val create : int -> MessageSig.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 -> MessageSig.ro t
val of_storage : storage_t list -> MessageSig.rw t
val to_storage : 'cap t -> storage_descr_t list
val with_message : 'cap t -> f:( 'cap t -> 'a ) -> 'a
val with_attachments : MessageSig.attachments -> 'cap t -> 'cap t
val get_attachments : 'cap t -> MessageSig.attachments