capnp

OCaml code generation plugin for the Cap'n Proto serialization framework
IN THIS PACKAGE
type !'a struct_codecs_t = {
bytes : ( Message.rw Slice.t -> 'a ) * ( 'a -> Message.rw Slice.t -> unit );
pointer : ( Message.rw Slice.t -> 'a ) * ( 'a -> Message.rw Slice.t -> unit );
composite : 'b. ( ( Message.rw, 'b ) StructStorage.t -> 'a ) * ( 'a -> ( Message.rw, 'b ) StructStorage.t -> unit );
}
type !'a t =
| Empty of unit -> 'a * 'a -> unit
| Bit of bool -> 'a * 'a -> bool
| Bytes1 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
| Bytes2 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
| Bytes4 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
| Bytes8 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
| Pointer of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
| Struct of 'a struct_codecs_t