package capnp

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