MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / toWire

Method toWire

src/main/java/core/org/xbill/DNS/Message.java:396–408  ·  view source on GitHub ↗
(DNSOutput out)

Source from the content-addressed store, hash-verified

394}
395
396void
397toWire(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. */
411private int

Callers 5

runMethod · 0.95
sendQueryMethod · 0.95
doAXFRMethod · 0.95
generateReplyMethod · 0.95
buildErrorMessageMethod · 0.95

Calls 15

toWireMethod · 0.95
getOPTMethod · 0.95
sectionToWireMethod · 0.95
setFlagMethod · 0.95
currentMethod · 0.95
toByteArrayMethod · 0.95
recordLengthMethod · 0.80
getFlagsByteMethod · 0.80
writeU16AtMethod · 0.80
getCountMethod · 0.80
writeByteArrayMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected