public final boolean strEquals ( byte [ ] a , int aOff , int aLen ) { if ( aLen != len ) { return false ; } for ( int i = 0 ; i < len ; ++ i ) { if ( a [ aOff + i ] != fb [ off + i ] ) { return false ; } } return true ; }
Checks if the slice is equal to a portion of a given byte array .