public static int HexTextToInt(char[] text, int start, int end) { int num = 0; for (int index = start; index < end; ++index) { num += ConvertUtils.HexCharToInt(text[index]) << (end - 1 - index) * 4; } return(num); }
public static int HexTextToInt(char[] text, int start, int end) { int num = 0; for (int i = start; i < end; i++) { num = num + (ConvertUtils.HexCharToInt(text[i]) << ((end - 1 - i) * 4 & 31)); } return(num); }