capnp

OCaml code generation plugin for the Cap'n Proto serialization framework
IN THIS PACKAGE
type (!'cap, !+'a) t = private ( 'cap, 'a ) RWM.StructStorage.t = {
data : 'cap Slice.t;
pointers : 'cap Slice.t;
}
val readonly : ( 'cap, 'a ) t -> ( MessageSig.ro, 'a ) t
val with_attachments : MessageSig.attachments -> ( 'cap, 'a ) t -> ( 'cap, 'a ) t
val get_attachments : ( 'cap, 'a ) t -> MessageSig.attachments
val v : data:'cap Slice.t -> pointers:'cap Slice.t -> ( 'cap, 'a ) t
val cast : ( 'cap, 'a ) t -> ( 'cap, 'b ) t
type !'a reader_t = ( MessageSig.ro, 'a ) t option
type !'a builder_t = ( MessageSig.rw, 'a ) t
val reader_of_builder : 'a builder_t -> 'a reader_t
val message_of_builder : 'a builder_t -> MessageSig.rw Message.t
val cast_reader : 'a reader_t -> 'b reader_t