Module Msgpck
msgpack library for OCaml
1.7 — homepage
Msgpck
type t=|Nil|Bool of bool|Int of int|Uint32 of int32|Int32 of int32|Uint64 of int64|Int64 of int64|Float32 of int32|Float of float|String of string|Bytes of string|Ext of int * string|List of t list|Map of (t * t) listMessagePack types.
Conversion functions OCaml -> MessagePack
val of_nil : tval of_bool : bool -> tval of_int : int -> tval of_uint32 : int32 -> tval of_int32 : int32 -> tval of_uint64 : int64 -> tval of_int64 : int64 -> tval of_float32 : int32 -> tval of_float : float -> tval of_string : string -> tval of_bytes : string -> tval of_ext : int -> string -> tval of_list : t list -> tval of_map : (t * t) list -> t
Conversion functions MessagePack -> OCaml
val to_nil : t -> unitval to_bool : t -> boolval to_int : t -> intval to_uint32 : t -> int32val to_int32 : t -> int32val to_uint64 : t -> int64val to_int64 : t -> int64val to_float32 : t -> int32val to_float : t -> floatval to_string : t -> stringval to_bytes : t -> stringval to_ext : t -> int * stringval to_list : t -> t listval to_map : t -> (t * t) list
Output signature for functors defined below
module type S = sig ... endmodule StringBuf : S with type buf_in = string and type buf_out = Stdlib.Buffer.tMessagePack library decoding from strings and writing in Buffers.
module BytesBuf : S with type buf_in = Stdlib.Bytes.t and type buf_out = Stdlib.Buffer.tMessagePack library decoding from bytes and writing in Buffers.