private static final int findSameDataBlock ( int data [ ] , int dataLength , int otherBlock , int step ) { // ensure that we do not even partially get past dataLength dataLength -= DATA_BLOCK_LENGTH ; for ( int block = 0 ; block <= dataLength ; block += step ) { if ( equal_int ( data , block , otherBlock , DATA_BLOCK_LENGTH ) ) { return block ; } } return - 1 ; }
Find the same data block