read_unsigned_int function

read unsigned integer from binary