/** * Convert a byte array into an integer (signed 32-bit) value. */ public static int convertToInt( byte[] buf ) { int value = unpack4( buf, 0 ); value = ( value ^ 0x80000000 ); // flip MSB because "int" is signed return value; }
/** * Convert a byte array into an integer (signed 32-bit) value. */ public static int convertToInt( byte[] buf ) { int value = unpack4( buf, 0 ); value = ( value ^ 0x80000000 ); // flip MSB because "int" is signed return value; }
/** * Convert a byte array into an integer (signed 32-bit) value. */ public static int convertToInt( byte[] buf ) { int value = unpack4( buf, 0 ); value = ( value ^ 0x80000000 ); // flip MSB because "int" is signed return value; }