pub fn bytes_to_int<T: PrimInt + NumCast>(bytes: &[u8]) -> T
Convert big-endian bytes into base10 or decimal number.