package capnp

  1. Overview
  2. Docs
exception Unsupported_message_frame
module WriteContext : sig ... end
module ReadContext : sig ... end
val create_write_context_for_fd : ?restart:bool -> compression:Codecs.compression_t -> Unix.file_descr -> Unix.file_descr WriteContext.t
val create_write_context_for_channel : compression:Codecs.compression_t -> Pervasives.out_channel -> Pervasives.out_channel WriteContext.t
val create_read_context_for_fd : ?restart:bool -> compression:Codecs.compression_t -> Unix.file_descr -> Unix.file_descr ReadContext.t
val create_read_context_for_channel : compression:Codecs.compression_t -> Pervasives.in_channel -> Pervasives.in_channel ReadContext.t
val write_message_to_fd : ?restart:bool -> compression:Codecs.compression_t -> 'cap Message.BytesMessage.Message.t -> Unix.file_descr -> unit
val write_message_to_channel : compression:Codecs.compression_t -> 'cap Message.BytesMessage.Message.t -> Pervasives.out_channel -> unit
val write_message_to_file : ?perm:int -> compression:Codecs.compression_t -> 'cap Message.BytesMessage.Message.t -> string -> unit
val write_message_to_file_robust : ?perm:int -> compression:Codecs.compression_t -> 'cap Message.BytesMessage.Message.t -> string -> unit
val read_single_message_from_fd : ?restart:bool -> compression:Codecs.compression_t -> Unix.file_descr -> Message.rw Message.BytesMessage.Message.t option
val read_single_message_from_channel : compression:Codecs.compression_t -> Pervasives.in_channel -> Message.rw Message.BytesMessage.Message.t option
val read_message_from_file : compression:Codecs.compression_t -> string -> Message.rw Message.BytesMessage.Message.t option
OCaml

Innovation. Community. Security.