package streamable

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Expert allows the serialisation of parts to occur separately from the writing of parts. While you are able to write any bigstring to the pipe rpc with this interface, you should only write state parts until you finalise the state, and then after that you should only write update parts.

val create_state_part : state_bin_writer:'state_part Core.Bin_prot.Type_class.writer -> 'state_part -> Core.Bigstring.t
val finalise_state_message : Core.Bigstring.t lazy_t
val create_update_part : update_bin_writer:'update_part Core.Bin_prot.Type_class.writer -> 'update_part -> Core.Bigstring.t
val finalise_update_message : Core.Bigstring.t lazy_t
val write_without_pushback : ?pos:int -> ?len:int -> (_, _) t -> Core.Bigstring.t -> [ `Closed | `Ok ]
OCaml

Innovation. Community. Security.