package repr

  1. Overview
  2. Docs

Module Repr.BinarySource

This module provides functions for interacting with Repr's binary serialisation format directly (without first constructing a representation of the type being encoded). These can be useful for performance-critical applications, where the runtime overhead of the dynamic specialisation is too large, or when the actual codec being used is too complex to be expressed via a type representation.

Sourcetype 'a encoder = 'a -> (string -> unit) -> unit
Sourcetype 'a decoder = string -> int ref -> 'a
Sourcetype 'a sizer = 'a Size.Sizer.t
Sourcemodule type S = sig ... end
Sourcemodule type S1 = sig ... end
Sourcemodule type S2 = sig ... end
Sourcemodule type S3 = sig ... end
Sourcemodule type S4 = sig ... end
Sourcemodule Unit : S with type t := unit
Sourcemodule Bool : S with type t := bool
Sourcemodule Char : S with type t := char
Sourcemodule Varint : S with type t := int
Sourcemodule Varint_int63 : S with type t := Optint.Int63.t
Sourcemodule Int16 : S with type t := int
Sourcemodule Int32 : S with type t := int32
Sourcemodule Int64 : S with type t := int64
Sourcemodule Float : S with type t := float
Sourcemodule String : sig ... end
Sourcemodule String_unboxed : sig ... end
Sourcemodule Bytes : sig ... end
Sourcemodule Bytes_unboxed : sig ... end
Sourcemodule List : sig ... end
Sourcemodule Array : sig ... end
Sourcemodule Option : S1 with type 'a t := 'a option
Sourcemodule Pair : S2 with type ('a, 'b) t := 'a * 'b
Sourcemodule Triple : S3 with type ('a, 'b, 'c) t := 'a * 'b * 'c
Sourcemodule Quad : S4 with type ('a, 'b, 'c, 'd) t := 'a * 'b * 'c * 'd
OCaml

Innovation. Community. Security.