petite/src/wombat/scheme/util/Conversion.java
public static int[] byte2int(byte[] src) {
        int dstLength = src.length >>> 2;
        int[] dst = new int[dstLength];
        
        for (int i = 0; i < dstLength; i++) {
            int j = i << 2;
            int x = 0;
            x += (src[j++] & 0xff) << 0;
            x += (src[j++] & 0xff) << 8;
            x += (src[j++] & 0xff) << 16;
            x += (src[j++] & 0xff) << 24;
            dst[i] = x;
        }
        return dst;
    }
/**
	 * Convert byte arrays to int arrays.
	 * @param src Original byte array.
	 * @return Merge every four into an int for a new array.
	 */
Convert byte arrays to int arrays.
@param src Original byte array.
@return Merge every four into an int for a new array.
Convert byte arrays to int arrays . @param src Original byte array . @return Merge every four into an int for a new array .
public static int[] byte2int(byte[] src) {
        int dstLength = src.length >>> 2;
        int[] dst = new int[dstLength];
        for (int i = 0; i < dstLength; i++) {
            int j = i << 2;
            int x = 0;
            x += (src[j++] & 0xff) << 0;
            x += (src[j++] & 0xff) << 8;
            x += (src[j++] & 0xff) << 16;
            x += (src[j++] & 0xff) << 24;
            dst[i] = x;
        }
        return dst;
    }
public static int [ ] byte2int ( byte [ ] src ) { int dstLength = src . length >>> 2 ; int [ ] dst = new int [ dstLength ] ; for ( int i = 0 ; i < dstLength ; i ++ ) { int j = i << 2 ; int x = 0 ; x += ( src [ j ++ ] & 0xff ) << 0 ; x += ( src [ j ++ ] & 0xff ) << 8 ; x += ( src [ j ++ ] & 0xff ) << 16 ; x += ( src [ j ++ ] & 0xff ) << 24 ; dst [ i ] = x ; } return dst ; }
Convert byte arrays to int arrays.
Convert byte arrays to int arrays .