public static final int bytesToInt( byte[] data, int[] offset ) {
        /**
         * TODO: We use network-order within OceanStore, but temporarily
         * supporting intel-order to work with some JNI code until JNI code is
         * set to interoperate with network-order.
         */
        int result = 0;

        for( int i = 0; i < SIZE_INT; ++i ) {
            result <<= 8;
            result |= byteToUnsignedInt(data[offset[0]++]);
        }

        return result;
    }
public static final int bytesToInt ( byte [ ] data , int [ ] offset ) { int result = 0 ; for ( int i = 0 ; i < SIZE_INT ; ++ i ) { result <<= 8 ; result |= byteToUnsignedInt ( data [ offset [ 0 ] ++ ] ) ; } return result ; }
Return the <code>int</code> represented by the bytes in
<code>data</code> staring at offset <code>offset[0]</code>.

@param data the array from which to read
@param offset A single element array whose first element is the index in
data from which to begin reading on function entry, and which on
function exit has been incremented by the number of bytes read.

@return the value of the <code>int</code> decoded