package ppx_protocol_conv_msgpack

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Protocol_conv.Runtime.Driver with type t = Msgpck.t and type 'a flags = ?flags:[ `Mangle of string -> string ] -> 'a
type t = Msgpck.t
type 'a flags = ?flags:[ `Mangle of string -> string ] -> 'a
exception Protocol_error of string * t
val to_variant : (((string * t list) -> 'a) -> t -> 'a) flags
val of_variant : (('a -> string * t list) -> 'a -> t) flags
val to_record : ((t, 'a, 'b) Protocol_conv.Runtime.structure -> 'a -> t -> 'b) flags
val of_record : ((string * t) list -> t) flags
val to_tuple : ((t, 'a, 'b) Protocol_conv.Runtime.structure -> 'a -> t -> 'b) flags
val of_tuple : ((string * t) list -> t) flags
val to_option : ((t -> 'a) -> t -> 'a option) flags
val of_option : (('a -> t) -> 'a option -> t) flags
val to_list : ((t -> 'a) -> t -> 'a list) flags
val of_list : (('a -> t) -> 'a list -> t) flags
val to_array : ((t -> 'a) -> t -> 'a array) flags
val of_array : (('a -> t) -> 'a array -> t) flags
val to_lazy_t : ((t -> 'a) -> t -> 'a lazy_t) flags
val of_lazy_t : (('a -> t) -> 'a lazy_t -> t) flags
val to_int : (t -> int) flags
val of_int : (int -> t) flags
val to_int32 : (t -> int32) flags
val of_int32 : (int32 -> t) flags
val to_int64 : (t -> int64) flags
val of_int64 : (int64 -> t) flags
val to_string : (t -> string) flags
val of_string : (string -> t) flags
val to_float : (t -> float) flags
val of_float : (float -> t) flags
val to_bool : (t -> bool) flags
val of_bool : (bool -> t) flags
val to_unit : (t -> unit) flags
val of_unit : (unit -> t) flags
val of_msgpack : t -> t
val to_msgpack : t -> t
type bytes = string
val bytes_of_msgpack : t -> bytes
val bytes_to_msgpack : bytes -> t
type uint32 = int
val uint32_of_msgpack : t -> uint32
val uint32_to_msgpack : uint32 -> t
type uint64 = int
val uint64_of_msgpack : t -> uint64
val uint64_to_msgpack : uint64 -> t
type float32 = float
val float32_of_msgpack : t -> float32
val float32_to_msgpack : float32 -> t
OCaml

Innovation. Community. Security.