package extprot

  1. Overview
  2. Docs
exception Wrong_protocol_version of int * int
val serialize : ?buf:Msg_buffer.t -> (Msg_buffer.t -> 'a -> 'b) -> 'a -> string
val deserialize : (Reader.String_reader.t -> 'a) -> ?offset:int -> string -> 'a
val read : (Reader.IO_reader.t -> 'a) -> IO.input -> 'a
val dump : (Msg_buffer.t -> 'a -> unit) -> Msg_buffer.t -> 'a -> unit
val write : ?buf:Msg_buffer.t -> (Msg_buffer.t -> 'a -> unit) -> 'b IO.output -> 'a -> unit
val read_versioned : (Reader.IO_reader.t -> 'a) array -> Reader.IO_reader.t -> 'a
val io_read_versioned : (Reader.IO_reader.t -> 'a) array -> IO.input -> 'a
val write_versioned : ?buf:Msg_buffer.t -> (Msg_buffer.t -> 'a -> unit) array -> int -> 'b IO.output -> 'a -> unit
val serialize_versioned : ?buf:Msg_buffer.t -> (Msg_buffer.t -> 'a -> unit) array -> int -> 'a -> string
val deserialize_versioned : (Reader.String_reader.t -> 'a) array -> string -> 'a
val deserialize_versioned' : (Reader.String_reader.t -> 'a) array -> int -> string -> 'a
val read_frame : IO.input -> int * string
OCaml

Innovation. Community. Security.