public boolean verifyMatches(Matches matches){
  int lenLimit=Math.min(getAvail(),matchLenMax);
  for (int i=0; i < matches.count; ++i)   if (getMatchLen(matches.dist[i],lenLimit) != matches.len[i])   return false;
  return true;
}

public boolean verifyMatches ( Matches matches ) { int lenLimit = Math . min ( getAvail ( ) , matchLenMax ) ; for ( int i = 0 ; i < matches . count ; ++ i ) if ( getMatchLen ( matches . dist [ i ] , lenLimit ) != matches . len [ i ] ) return false ; return true ; }
verifies that the matches returned by the match finder are valid . this is meant to be used in an assert statement . this is totally useless for actual encoding since match finder ' s results should naturally always be valid if it isn ' t broken .
