package capnp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a struct_codecs_t = {
  1. bytes : (Message.rw Slice.t -> 'a) * ('a -> Message.rw Slice.t -> unit);
  2. pointer : (Message.rw Slice.t -> 'a) * ('a -> Message.rw Slice.t -> unit);
  3. composite : 'b. ((Message.rw, 'b) StructStorage.t -> 'a) * ('a -> (Message.rw, 'b) StructStorage.t -> unit);
}
type !'a t =
  1. | Empty of unit -> 'a * 'a -> unit
  2. | Bit of bool -> 'a * 'a -> bool
  3. | Bytes1 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
  4. | Bytes2 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
  5. | Bytes4 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
  6. | Bytes8 of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
  7. | Pointer of Message.rw Slice.t -> 'a * 'a -> Message.rw Slice.t -> unit
  8. | Struct of 'a struct_codecs_t