(byte [] b, int bpos)
| 768 | } |
| 769 | |
| 770 | private final boolean |
| 771 | equals(byte [] b, int bpos) { |
| 772 | int labels = labels(); |
| 773 | for (int i = 0, pos = offset(0); i < labels; i++) { |
| 774 | if (name[pos] != b[bpos]) |
| 775 | return false; |
| 776 | int len = name[pos++]; |
| 777 | bpos++; |
| 778 | if (len > MAXLABEL) |
| 779 | throw new IllegalStateException("invalid label"); |
| 780 | for (int j = 0; j < len; j++) |
| 781 | if (lowercase[(name[pos++] & 0xFF)] != |
| 782 | lowercase[(b[bpos++] & 0xFF)]) |
| 783 | return false; |
| 784 | } |
| 785 | return true; |
| 786 | } |
| 787 | |
| 788 | /** |
| 789 | * Are these two Names equivalent? |
no test coverage detected