public boolean rangeEquals ( long rangeStart , SegmentedByteArray compareTo , long cmpStart , int length ) { for ( int i = 0 ; i < length ; i ++ ) if ( get ( rangeStart + i ) != compareTo . get ( cmpStart + i ) ) return false ; return true ; }
checks equality for a specified range of bytes in two arrays