package core

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Bin_prot.Type_classSource

Sizers, writers, and readers in records

Sourcetype 'a writer = {
  1. size : 'a Bin_prot.Size.sizer;
  2. write : 'a Bin_prot.Write.writer;
}
Sourcetype 'a reader = {
  1. read : 'a Bin_prot.Read.reader;
  2. vtag_read : (int -> 'a) Bin_prot.Read.reader;
}
Sourcetype 'a t = {
  1. shape : Bin_prot.Shape.t;
  2. writer : 'a writer;
  3. reader : 'a reader;
}
Sourcetype 'a writer0 = 'a writer
Sourcetype 'a reader0 = 'a reader
Sourcetype 'a t0 = 'a t
Sourcemodule S1 : sig ... end
Sourcemodule S2 : sig ... end
Sourcemodule S3 : sig ... end
Sourceval bin_writer_unit : unit writer
Sourceval bin_reader_unit : unit reader
Sourceval bin_shape_unit : Bin_prot.Shape.t
Sourceval bin_unit : unit t
Sourceval bin_writer_bool : bool writer
Sourceval bin_reader_bool : bool reader
Sourceval bin_shape_bool : Bin_prot.Shape.t
Sourceval bin_bool : bool t
Sourceval bin_writer_string : string writer
Sourceval bin_reader_string : string reader
Sourceval bin_shape_string : Bin_prot.Shape.t
Sourceval bin_string : string t
Sourceval bin_writer_bytes : bytes writer
Sourceval bin_reader_bytes : bytes reader
Sourceval bin_shape_bytes : Bin_prot.Shape.t
Sourceval bin_bytes : bytes t
Sourceval bin_writer_char : char writer
Sourceval bin_reader_char : char reader
Sourceval bin_shape_char : Bin_prot.Shape.t
Sourceval bin_char : char t
Sourceval bin_writer_int : int writer
Sourceval bin_reader_int : int reader
Sourceval bin_shape_int : Bin_prot.Shape.t
Sourceval bin_int : int t
Sourceval bin_writer_float : float writer
Sourceval bin_reader_float : float reader
Sourceval bin_shape_float : Bin_prot.Shape.t
Sourceval bin_float : float t
Sourceval bin_writer_int32 : int32 writer
Sourceval bin_reader_int32 : int32 reader
Sourceval bin_shape_int32 : Bin_prot.Shape.t
Sourceval bin_int32 : int32 t
Sourceval bin_writer_int64 : int64 writer
Sourceval bin_reader_int64 : int64 reader
Sourceval bin_shape_int64 : Bin_prot.Shape.t
Sourceval bin_int64 : int64 t
Sourceval bin_writer_nativeint : nativeint writer
Sourceval bin_reader_nativeint : nativeint reader
Sourceval bin_shape_nativeint : Bin_prot.Shape.t
Sourceval bin_nativeint : nativeint t
Sourceval bin_writer_nat0 : Bin_prot.Nat0.t writer
Sourceval bin_reader_nat0 : Bin_prot.Nat0.t reader
Sourceval bin_shape_nat0 : Bin_prot.Shape.t
Sourceval bin_nat0 : Bin_prot.Nat0.t t
Sourceval bin_writer_ref : ('a, 'a ref) S1.writer
Sourceval bin_reader_ref : ('a, 'a ref) S1.reader
Sourceval bin_ref : ('a, 'a ref) S1.t
Sourceval bin_writer_lazy : ('a, 'a lazy_t) S1.writer
Sourceval bin_reader_lazy : ('a, 'a lazy_t) S1.reader
Sourceval bin_lazy : ('a, 'a lazy_t) S1.t
Sourceval bin_writer_option : ('a, 'a option) S1.writer
Sourceval bin_reader_option : ('a, 'a option) S1.reader
Sourceval bin_shape_option : Bin_prot.Shape.t -> Bin_prot.Shape.t
Sourceval bin_option : ('a, 'a option) S1.t
Sourceval bin_writer_pair : ('a, 'b, 'a * 'b) S2.writer
Sourceval bin_reader_pair : ('a, 'b, 'a * 'b) S2.reader
Sourceval bin_pair : ('a, 'b, 'a * 'b) S2.t
Sourceval bin_writer_triple : ('a, 'b, 'c, 'a * 'b * 'c) S3.writer
Sourceval bin_reader_triple : ('a, 'b, 'c, 'a * 'b * 'c) S3.reader
Sourceval bin_triple : ('a, 'b, 'c, 'a * 'b * 'c) S3.t
Sourceval bin_writer_list : ('a, 'a list) S1.writer
Sourceval bin_reader_list : ('a, 'a list) S1.reader
Sourceval bin_list : ('a, 'a list) S1.t
Sourceval bin_writer_array : ('a, 'a array) S1.writer
Sourceval bin_reader_array : ('a, 'a array) S1.reader
Sourceval bin_shape_array : Bin_prot.Shape.t -> Bin_prot.Shape.t
Sourceval bin_array : ('a, 'a array) S1.t
Sourceval bin_writer_hashtbl : ('a, 'b, ('a, 'b) Hashtbl.t) S2.writer
Sourceval bin_reader_hashtbl : ('a, 'b, ('a, 'b) Hashtbl.t) S2.reader
Sourceval bin_hashtbl : ('a, 'b, ('a, 'b) Hashtbl.t) S2.t
Sourceval bin_writer_float32_vec : Bin_prot.Common.vec32 writer
Sourceval bin_reader_float32_vec : Bin_prot.Common.vec32 reader
Sourceval bin_shape_float32_vec : Bin_prot.Shape.t
Sourceval bin_float32_vec : Bin_prot.Common.vec32 t
Sourceval bin_writer_float64_vec : Bin_prot.Common.vec64 writer
Sourceval bin_reader_float64_vec : Bin_prot.Common.vec64 reader
Sourceval bin_shape_float64_vec : Bin_prot.Shape.t
Sourceval bin_float64_vec : Bin_prot.Common.vec64 t
Sourceval bin_writer_vec : Bin_prot.Common.vec writer
Sourceval bin_reader_vec : Bin_prot.Common.vec reader
Sourceval bin_shape_vec : Bin_prot.Shape.t
Sourceval bin_writer_float32_mat : Bin_prot.Common.mat32 writer
Sourceval bin_reader_float32_mat : Bin_prot.Common.mat32 reader
Sourceval bin_shape_float32_mat : Bin_prot.Shape.t
Sourceval bin_float32_mat : Bin_prot.Common.mat32 t
Sourceval bin_writer_float64_mat : Bin_prot.Common.mat64 writer
Sourceval bin_reader_float64_mat : Bin_prot.Common.mat64 reader
Sourceval bin_shape_float64_mat : Bin_prot.Shape.t
Sourceval bin_float64_mat : Bin_prot.Common.mat64 t
Sourceval bin_writer_mat : Bin_prot.Common.mat writer
Sourceval bin_reader_mat : Bin_prot.Common.mat reader
Sourceval bin_shape_mat : Bin_prot.Shape.t
Sourceval bin_writer_bigstring : Bin_prot.Common.buf writer
Sourceval bin_reader_bigstring : Bin_prot.Common.buf reader
Sourceval bin_shape_bigstring : Bin_prot.Shape.t
Sourceval bin_bigstring : Bin_prot.Common.buf t
Sourceval bin_writer_floatarray : floatarray writer
Sourceval bin_reader_floatarray : floatarray reader
Sourceval bin_shape_floatarray : Bin_prot.Shape.t
Sourceval bin_floatarray : floatarray t
Sourceval bin_writer_float_array : float array writer
  • deprecated [since 2021-09] use ppx_bin_prot with type [float array] or [floatarray] or the 'floatarray' functions
Sourceval bin_reader_float_array : float array reader
  • deprecated [since 2021-09] use ppx_bin_prot with type [float array] or [floatarray] or the 'floatarray' functions
Sourceval bin_shape_float_array : Bin_prot.Shape.t
  • deprecated [since 2021-09] use ppx_bin_prot with type [float array] or [floatarray] or the 'floatarray' functions
Sourceval bin_float_array : float array t
  • deprecated [since 2021-09] use ppx_bin_prot with type [float array] or [floatarray] or the 'floatarray' functions
Sourcetype float_array = float array
  • deprecated [since 2021-09] use ppx_bin_prot with type [float array] or [floatarray] or the 'floatarray' functions
Sourceval bin_writer_variant_int : int writer
Sourceval bin_reader_variant_int : int reader
Sourceval bin_variant_int : int t
Sourceval bin_writer_int_8bit : int writer
Sourceval bin_reader_int_8bit : int reader
Sourceval bin_shape_int_8bit : Bin_prot.Shape.t
Sourceval bin_int_8bit : int t
Sourceval bin_writer_int_16bit : int writer
Sourceval bin_reader_int_16bit : int reader
Sourceval bin_shape_int_16bit : Bin_prot.Shape.t
Sourceval bin_int_16bit : int t
Sourceval bin_writer_int_32bit : int writer
Sourceval bin_reader_int_32bit : int reader
Sourceval bin_shape_int_32bit : Bin_prot.Shape.t
Sourceval bin_int_32bit : int t
Sourceval bin_writer_int_64bit : int writer
Sourceval bin_reader_int_64bit : int reader
Sourceval bin_shape_int_64bit : Bin_prot.Shape.t
Sourceval bin_int_64bit : int t
Sourceval bin_writer_int64_bits : int64 writer
Sourceval bin_reader_int64_bits : int64 reader
Sourceval bin_shape_int64_bits : Bin_prot.Shape.t
Sourceval bin_int64_bits : int64 t
Sourceval bin_writer_network16_int : int writer
Sourceval bin_reader_network16_int : int reader
Sourceval bin_shape_network16_int : Bin_prot.Shape.t
Sourceval bin_network16_int : int t
Sourceval bin_writer_network32_int : int writer
Sourceval bin_reader_network32_int : int reader
Sourceval bin_shape_network32_int : Bin_prot.Shape.t
Sourceval bin_network32_int : int t
Sourceval bin_writer_network32_int32 : int32 writer
Sourceval bin_reader_network32_int32 : int32 reader
Sourceval bin_shape_network32_int32 : Bin_prot.Shape.t
Sourceval bin_network32_int32 : int32 t
Sourceval bin_writer_network64_int : int writer
Sourceval bin_reader_network64_int : int reader
Sourceval bin_shape_network64_int : Bin_prot.Shape.t
Sourceval bin_network64_int : int t
Sourceval bin_writer_network64_int64 : int64 writer
Sourceval bin_reader_network64_int64 : int64 reader
Sourceval bin_shape_network64_int64 : Bin_prot.Shape.t
Sourceval bin_network64_int64 : int64 t
Sourceval bin_writer_array_no_length : ('a, 'a array) S1.writer
  • deprecated [since 2016-03] this writer was deprecated as it is misleading and unused

Conversion of binable types

Sourceval cnv_writer : ('a -> 'b) -> 'b writer -> 'a writer
Sourceval cnv_reader : ('b -> 'a) -> 'b reader -> 'a reader
Sourceval cnv : (Bin_prot.Shape.t -> Bin_prot.Shape.t) -> ('a -> 'b) -> ('b -> 'a) -> 'b t -> 'a t
OCaml

Innovation. Community. Security.