private boolean compareBytes ( byte [ ] lhs , byte [ ] rhs , int rhsOffset ) { boolean result = true ; for ( int loop = 0 ; loop < lhs . length ; loop ++ ) { if ( lhs [ loop ] != rhs [ rhsOffset + loop ] ) { result = false ; break ; } } return ( result ) ; }
Compare an array of bytes with a subsection of a larger array of bytes .