visad/src/main/java/ucar/nc2/iosp/gempak/GempakUtil.java
public static int[] swp4(int[] values, int startIndex, int number) {
        for (int i = startIndex; i < startIndex + number; i++) {
            values[i] = Integer.reverseBytes(values[i]);
        }
        return values;
    }
public static int[] swp4(int[] values, int startIndex, int number) {
        for (int i = startIndex; i < startIndex + number; i++) {
            values[i] = Integer.reverseBytes(values[i]);
        }
        return values;
    }
public static int [ ] swp4 ( int [ ] values , int startIndex , int number ) { for ( int i = startIndex ; i < startIndex + number ; i ++ ) { values [ i ] = Integer . reverseBytes ( values [ i ] ) ; } return values ; }
Swap the order of the integers in place.
@param values  array of int values
@param startIndex  starting index of the array
@param number of bytes
@return input array with values swapped
Swap the order of the integers in place .