(DNSOutput out)
| 394 | } |
| 395 | |
| 396 | void |
| 397 | toWire(DNSOutput out) { |
| 398 | header.toWire(out); |
| 399 | Compression c = new Compression(); |
| 400 | for (int i = 0; i < 4; i++) { |
| 401 | if (sections[i] == null) |
| 402 | continue; |
| 403 | for (int j = 0; j < sections[i].size(); j++) { |
| 404 | Record rec = (Record)sections[i].get(j); |
| 405 | rec.toWire(out, i, c); |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | /* Returns the number of records not successfully rendered. */ |
| 411 | private int |
no test coverage detected