private static boolean arrayCompare ( byte [ ] a , int offset1 , byte [ ] a2 , int offset2 , int length ) { for ( int i = 0 ; i < length ; i ++ ) { if ( a [ offset1 ++ ] != a2 [ offset2 ++ ] ) return false ; } return true ; }
Returns true if the array chunks are equal false otherwise .