jon.recoil.org

Module Bin_prot.WriteSource

Writing values to the binary protocol using (mostly) OCaml.

Type of writer functions for the binary protocol. They take a buffer, a write position and a value, and return the next position after writing out the value.

Sourcetype ('a, 'b) writer1 = 'a Bin_prot.Write.writer -> 'b Bin_prot.Write.writer
Sourcetype ('a, 'b, 'c) writer2 = 'a Bin_prot.Write.writer -> ('b, 'c) Bin_prot.Write.writer1
Sourcetype ('a, 'b, 'c, 'd) writer3 = 'a Bin_prot.Write.writer -> ('b, 'c, 'd) Bin_prot.Write.writer2
Sourcetype ('a, 'b) writer_local1 = 'a Bin_prot.Write.writer_local -> 'b Bin_prot.Write.writer_local
Sourcetype ('a, 'b, 'c) writer_local2 = 'a Bin_prot.Write.writer_local -> ('b, 'c) Bin_prot.Write.writer_local1
Sourcetype ('a, 'b, 'c, 'd) writer_local3 = 'a Bin_prot.Write.writer_local -> ('b, 'c, 'd) Bin_prot.Write.writer_local2
Sourceval bin_write_unit : unit Bin_prot.Write.writer
Sourceval bin_write_bool : bool Bin_prot.Write.writer
Sourceval bin_write_string : string Bin_prot.Write.writer
Sourceval bin_write_bytes : bytes Bin_prot.Write.writer
Sourceval bin_write_char : char Bin_prot.Write.writer
Sourceval bin_write_int : int Bin_prot.Write.writer
Sourceval bin_write_float : float Bin_prot.Write.writer
Sourceval bin_write_int32 : int32 Bin_prot.Write.writer
Sourceval bin_write_int64 : int64 Bin_prot.Write.writer
Sourceval bin_write_nativeint : nativeint Bin_prot.Write.writer
Sourceval bin_write_ref : ('a, 'a Stdlib.ref) Bin_prot.Write.writer1
Sourceval bin_write_lazy : ('a, 'a lazy_t) Bin_prot.Write.writer1
Sourceval bin_write_option : ('a, 'a option) Bin_prot.Write.writer1
Sourceval bin_write_pair : ('a, 'b, 'a * 'b) Bin_prot.Write.writer2
Sourceval bin_write_triple : ('a, 'b, 'c, 'a * 'b * 'c) Bin_prot.Write.writer3
Sourceval bin_write_list : ('a, 'a list) Bin_prot.Write.writer1
Sourceval bin_write_array : ('a, 'a array) Bin_prot.Write.writer1
Sourceval bin_write_hashtbl : ('a, 'b, ('a, 'b) Stdlib.Hashtbl.t) Bin_prot.Write.writer2
Sourceval bin_write_floatarray : floatarray Bin_prot.Write.writer
Sourceval bin_write_variant_int : int Bin_prot.Write.writer

bin_write_variant_int writes out the exact little-endian bit representation of the variant tag of the given value (= 32 bits).

Sourceval bin_write_int_8bit : int Bin_prot.Write.writer

bin_write_int_8bit writes out the exact little-endian bit representation of the given int value using the lower 8 bits.

Sourceval bin_write_int_16bit : int Bin_prot.Write.writer

bin_write_int_16bit writes out the exact little-endian bit representation of the given int value using the lower 16 bits.

Sourceval bin_write_int_32bit : int Bin_prot.Write.writer

bin_write_int_32bit writes out the exact little-endian bit representation of the given int value using the lower 32 bits.

Sourceval bin_write_int_64bit : int Bin_prot.Write.writer

bin_write_int_64bit writes out the exact little-endian bit representation of the given int value using all 64 bits. On 32bit platforms negative numbers will be sign-extended in the 64bit representation.

Sourceval bin_write_int64_bits : int64 Bin_prot.Write.writer

bin_write_int64_bits writes out the exact little-endian bit representation of the given int64 value.

Sourceval bin_write_network16_int : int Bin_prot.Write.writer

bin_write_network16_int writes out an integer in 16bit network byte order (= big-endian).

Sourceval bin_write_network32_int : int Bin_prot.Write.writer

bin_write_network32_int writes out an integer in 32bit network byte order (= big-endian).

Sourceval bin_write_network32_int32 : int32 Bin_prot.Write.writer

bin_write_network32_int32 writes out a 32bit integer in 32bit network byte order (= big-endian).

Sourceval bin_write_network64_int : int Bin_prot.Write.writer

bin_write_network64_int writes out an integer in 64bit network byte order (= big-endian).

Sourceval bin_write_network64_int64 : int64 Bin_prot.Write.writer

bin_write_network64_int64 writes out a 64bit integer in 64bit network byte order (= big-endian).

Sourceval bin_write_unit__local : unit Bin_prot.Write.writer_local
Sourceval bin_write_bool__local : bool Bin_prot.Write.writer_local
Sourceval bin_write_string__local : string Bin_prot.Write.writer_local
Sourceval bin_write_bytes__local : bytes Bin_prot.Write.writer_local
Sourceval bin_write_char__local : char Bin_prot.Write.writer_local
Sourceval bin_write_int__local : int Bin_prot.Write.writer_local
Sourceval bin_write_float__local : float Bin_prot.Write.writer_local
Sourceval bin_write_int32__local : int32 Bin_prot.Write.writer_local
Sourceval bin_write_int64__local : int64 Bin_prot.Write.writer_local
Sourceval bin_write_nativeint__local : nativeint Bin_prot.Write.writer_local
Sourceval bin_write_ref__local : ('a, 'a Stdlib.ref) Bin_prot.Write.writer_local1
Sourceval bin_write_lazy__local : ('a, 'a lazy_t) Bin_prot.Write.writer_local1
Sourceval bin_write_option__local : ('a, 'a option) Bin_prot.Write.writer_local1
Sourceval bin_write_pair__local : ('a, 'b, 'a * 'b) Bin_prot.Write.writer_local2
Sourceval bin_write_triple__local : ('a, 'b, 'c, 'a * 'b * 'c) Bin_prot.Write.writer_local3
Sourceval bin_write_list__local : ('a, 'a list) Bin_prot.Write.writer_local1
Sourceval bin_write_array__local : ('a, 'a array) Bin_prot.Write.writer_local1
Sourceval bin_write_float32_vec__local : Bin_prot.Common.vec32 Bin_prot.Write.writer_local
Sourceval bin_write_float64_vec__local : Bin_prot.Common.vec64 Bin_prot.Write.writer_local
Sourceval bin_write_float32_mat__local : Bin_prot.Common.mat32 Bin_prot.Write.writer_local
Sourceval bin_write_float64_mat__local : Bin_prot.Common.mat64 Bin_prot.Write.writer_local
Sourceval bin_write_floatarray__local : floatarray Bin_prot.Write.writer_local
Sourceval bin_write_md5__local : Md5_lib.t Bin_prot.Write.writer_local
Sourceval bin_write_variant_int__local : int Bin_prot.Write.writer_local

bin_write_variant_int__local writes out the exact little-endian bit representation of the variant tag of the given value (= 32 bits).

Sourceval bin_write_int_8bit__local : int Bin_prot.Write.writer_local

bin_write_int_8bit__local writes out the exact little-endian bit representation of the given int value using the lower 8 bits.

Sourceval bin_write_int_16bit__local : int Bin_prot.Write.writer_local

bin_write_int_16bit__local writes out the exact little-endian bit representation of the given int value using the lower 16 bits.

Sourceval bin_write_int_32bit__local : int Bin_prot.Write.writer_local

bin_write_int_32bit__local writes out the exact little-endian bit representation of the given int value using the lower 32 bits.

Sourceval bin_write_int_64bit__local : int Bin_prot.Write.writer_local

bin_write_int_64bit__local writes out the exact little-endian bit representation of the given int value using all 64 bits. On 32bit platforms negative numbers will be sign-extended in the 64bit representation.

Sourceval bin_write_int64_bits__local : int64 Bin_prot.Write.writer_local

bin_write_int64_bits__local writes out the exact little-endian bit representation of the given int64 value.

Sourceval bin_write_network16_int__local : int Bin_prot.Write.writer_local

bin_write_network16_int__local writes out an integer in 16bit network byte order (= big-endian).

Sourceval bin_write_network32_int__local : int Bin_prot.Write.writer_local

bin_write_network32_int__local writes out an integer in 32bit network byte order (= big-endian).

Sourceval bin_write_network32_int32__local : int32 Bin_prot.Write.writer_local

bin_write_network32_int32__local writes out a 32bit integer in 32bit network byte order (= big-endian).

Sourceval bin_write_network64_int__local : int Bin_prot.Write.writer_local

bin_write_network64_int__local writes out an integer in 64bit network byte order (= big-endian).

Sourceval bin_write_network64_int64__local : int64 Bin_prot.Write.writer_local

bin_write_network64_int64__local writes out a 64bit integer in 64bit network byte order (= big-endian).