Bin_prot.CommonCommon definitions used by binary protocol converters
type buf =
(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.tBuffers
val create_buf : int -> bufcreate_buf n creates a buffer of size n.
val buf_len : buf -> intbuf_len buf returns the length of buf.
val assert_pos : pos -> unitassert_pos pos
val blit_string_buf :
?src_pos:int ->
string ->
?dst_pos:int ->
buf ->
len:int ->
unitblit_string_buf ?src_pos src ?dst_pos dst ~len blits len bytes of the source string src starting at position src_pos to buffer dst starting at position dst_pos.
val blit_bytes_buf :
?src_pos:int ->
bytes ->
?dst_pos:int ->
buf ->
len:int ->
unitblit_bytes_buf ?src_pos src ?dst_pos dst ~len blits len bytes of the source byte sequence src starting at position src_pos to buffer dst starting at position dst_pos.
val blit_buf_string :
?src_pos:int ->
buf ->
?dst_pos:int ->
bytes ->
len:int ->
unitblit_buf_string ?src_pos src ?dst_pos dst ~len blits len bytes of the source buffer src starting at position src_pos to string dst starting at position dst_pos.
val blit_buf_bytes :
?src_pos:int ->
buf ->
?dst_pos:int ->
bytes ->
len:int ->
unitblit_buf_bytes ?src_pos src ?dst_pos dst ~len blits len bytes of the source buffer src starting at position src_pos to byte sequence dst starting at position dst_pos.
blit_buf ?src_pos ~src ?dst_pos ~dst len blits len bytes of the source buffer src starting at position src_pos to destination buffer dst starting at position dst_pos.
module ReadError : sig ... endexception Read_error of ReadError.t * posReadError (err, err_pos)
PolyRecWrite type gets raised when the user attempts to write or estimate the size of a value of a type that is bound through a polymorphic record field in type definition type.
EmptyType gets raised when the user attempts to write or estimate the size of a value of an empty type, which would not make sense.
val raise_read_error : ReadError.t -> pos -> 'araise_read_error err pos
val raise_variant_wrong_type : string -> pos -> 'araise_variant_wrong_type name pos
type vec32 =
(float, Bigarray.float32_elt, Bigarray.fortran_layout) Bigarray.Array1.ttype vec64 =
(float, Bigarray.float64_elt, Bigarray.fortran_layout) Bigarray.Array1.ttype vec = vec64type mat32 =
(float, Bigarray.float32_elt, Bigarray.fortran_layout) Bigarray.Array2.ttype mat64 =
(float, Bigarray.float64_elt, Bigarray.fortran_layout) Bigarray.Array2.ttype mat = mat64copy_htbl_list htbl lst adds all (key, value) pairs in lst to hash table htbl.
val unsafe_blit_string_buf :
src_pos:int ->
string ->
dst_pos:int ->
buf ->
len:int ->
unitval unsafe_blit_bytes_buf :
src_pos:int ->
bytes ->
dst_pos:int ->
buf ->
len:int ->
unitval unsafe_blit_buf_string :
src_pos:int ->
buf ->
dst_pos:int ->
bytes ->
len:int ->
unitval unsafe_blit_buf_bytes :
src_pos:int ->
buf ->
dst_pos:int ->
bytes ->
len:int ->
unitval unsafe_blit_float_array_buf :
src_pos:int ->
float array ->
dst_pos:int ->
buf ->
len:int ->
unitval unsafe_blit_buf_float_array :
src_pos:int ->
buf ->
dst_pos:int ->
float array ->
len:int ->
unitval unsafe_blit_floatarray_buf :
src_pos:int ->
floatarray ->
dst_pos:int ->
buf ->
len:int ->
unitval unsafe_blit_buf_floatarray :
src_pos:int ->
buf ->
dst_pos:int ->
floatarray ->
len:int ->
unit