bin_prot

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

Conversion of binable types

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