type 'a writer = Bin_prot.Common.buf -> pos:Bin_prot.Common.pos -> 'a -> Bin_prot.Common.posType 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.
type ('a, 'b) writer1 = 'a writer -> 'b writertype ('a, 'b, 'c) writer2 = 'a writer -> ('b, 'c) writer1type ('a, 'b, 'c, 'd) writer3 = 'a writer -> ('b, 'c, 'd) writer2
val bin_write_unit : unit writerval bin_write_bool : bool writerval bin_write_string : string writerval bin_write_bytes : bytes writerval bin_write_char : char writerval bin_write_int : int writerval bin_write_nat0 : Bin_prot.Nat0.t writerval bin_write_float : float writerval bin_write_int32 : int32 writerval bin_write_int64 : int64 writerval bin_write_nativeint : nativeint writerval bin_write_ref : ('a, 'a Stdlib.ref) writer1val bin_write_lazy : ('a, 'a lazy_t) writer1val bin_write_option : ('a, 'a option) writer1val bin_write_pair : ('a, 'b, 'a * 'b) writer2val bin_write_triple : ('a, 'b, 'c, 'a * 'b * 'c) writer3val bin_write_list : ('a, 'a list) writer1val bin_write_array : ('a, 'a array) writer1val bin_write_hashtbl : ('a, 'b, ('a, 'b) Stdlib.Hashtbl.t) writer2val bin_write_float32_vec : Bin_prot.Common.vec32 writerval bin_write_float64_vec : Bin_prot.Common.vec64 writerval bin_write_vec : Bin_prot.Common.vec writerval bin_write_float32_mat : Bin_prot.Common.mat32 writerval bin_write_float64_mat : Bin_prot.Common.mat64 writerval bin_write_mat : Bin_prot.Common.mat writerval bin_write_bigstring : Bin_prot.Common.buf writerval bin_write_float_array : float array writerval bin_write_md5 : Md5_lib.t writerval bin_write_variant_int : int writerbin_write_variant_intwrites out the exact little-endian bit representation of the variant tag of the given value (= 32 bits).
val bin_write_int_8bit : int writerbin_write_int_8bitwrites out the exact little-endian bit representation of the givenintvalue using the lower 8 bits.
val bin_write_int_16bit : int writerbin_write_int_16bitwrites out the exact little-endian bit representation of the givenintvalue using the lower 16 bits.
val bin_write_int_32bit : int writerbin_write_int_32bitwrites out the exact little-endian bit representation of the givenintvalue using the lower 32 bits.
val bin_write_int_64bit : int writerbin_write_int_64bitwrites out the exact little-endian bit representation of the givenintvalue using all 64 bits. On 32bit platforms negative numbers will be sign-extended in the 64bit representation.
val bin_write_int64_bits : int64 writerbin_write_int64_bitswrites out the exact little-endian bit representation of the givenint64value.
val bin_write_network16_int : int writerbin_write_network16_intwrites out an integer in 16bit network byte order (= big-endian).
val bin_write_network32_int : int writerbin_write_network32_intwrites out an integer in 32bit network byte order (= big-endian).
val bin_write_network32_int32 : int32 writerbin_write_network32_int32writes out a 32bit integer in 32bit network byte order (= big-endian).
val bin_write_network64_int : int writerbin_write_network64_intwrites out an integer in 64bit network byte order (= big-endian).
val bin_write_network64_int64 : int64 writerbin_write_network64_int64writes out a 64bit integer in 64bit network byte order (= big-endian).
val bin_write_array_no_length : ('a, 'a array) writer1bin_write_array_no_lengthwrites out all values in the given array without writing out its length.