Module utils

Source

Structs§

Greedy

Traits§

FromBinProtStream

Functions§

decode_bstr_from_slice
Returns an OCaml-like string view from the slice containing bin_prot encoded bytes.
decode_int
Decodes an integer from bin_prot encoded bytes provided by the given reader.
decode_int_from_slice
Decodes an integer from the slice containing bin_prot encoded bytes. Returns the resulting integer value and the number of bytes read from the reader.
decode_string
Decodes a String from bin_prot encoded bytes provided by the given reader.
decode_string_from_slice
Decodes a String from the slice containing bin_prot encoded bytes. Returns the resulting value and the number of bytes read from the reader.
get_sized_slice
Returns a slice of bytes of lenght specified by first 8 bytes in little endian.
stream_decode_size
Reads size of the next stream frame, specified by an 8-byte integer encoded as little-endian.