(byte [] in, int length)
| 131 | } |
| 132 | |
| 133 | private static byte [] |
| 134 | parseAddress(byte [] in, int length) throws WireParseException { |
| 135 | if (in.length > length) |
| 136 | throw new WireParseException("invalid address length"); |
| 137 | if (in.length == length) |
| 138 | return in; |
| 139 | byte [] out = new byte[length]; |
| 140 | System.arraycopy(in, 0, out, 0, in.length); |
| 141 | return out; |
| 142 | } |
| 143 | |
| 144 | void |
| 145 | rrFromWire(DNSInput in) throws IOException { |