private boolean subArraysEqual ( byte [ ] a , int aStart , byte [ ] b , int bStart , int len ) { for ( int i = aStart , j = bStart ; len > 0 ; i ++ , j ++ , len -- ) { if ( a [ i ] != b [ j ] ) { return false ; } } return true ; }
Returns true if subarrays are equal .