/** * Reverse any byte[]-Array and converts it then to an int * * @param b * @return int */ public static int ByteArrayReverseToInt(byte[] b) { byte[] bTemp = new byte[b.Length]; for (int i = b.Length - 1, j = 0; i >= 0; i--, j++) { bTemp[j] = b[i]; } return(SFOReaderUtilities.ByteArrayToInt(bTemp)); }
/** * Returns any byte[]-Array as an int * * @param b * @return Integer */ public static int ByteArrayToInt(byte[] b) { return(SFOReaderUtilities.ByteArrayToInt(b, 0)); }