Function decode_int_from_slice

Source
pub fn decode_int_from_slice<T>(slice: &[u8]) -> Result<(T, usize), Error>
where T: BinProtRead,
Expand description

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.