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

Method rrToWire

src/main/java/core/org/xbill/DNS/TSIGRecord.java:195–218  ·  view source on GitHub ↗
(DNSOutput out, Compression c, boolean canonical)

Source from the content-addressed store, hash-verified

193}
194
195void
196rrToWire(DNSOutput out, Compression c, boolean canonical) {
197 alg.toWire(out, null, canonical);
198
199 long time = timeSigned.getTime() / 1000;
200 int timeHigh = (int) (time >> 32);
201 long timeLow = (time & 0xFFFFFFFFL);
202 out.writeU16(timeHigh);
203 out.writeU32(timeLow);
204 out.writeU16(fudge);
205
206 out.writeU16(signature.length);
207 out.writeByteArray(signature);
208
209 out.writeU16(originalID);
210 out.writeU16(error);
211
212 if (other != null) {
213 out.writeU16(other.length);
214 out.writeByteArray(other);
215 }
216 else
217 out.writeU16(0);
218}
219
220}

Callers

nothing calls this directly

Calls 4

writeU16Method · 0.80
writeU32Method · 0.80
writeByteArrayMethod · 0.80
toWireMethod · 0.45

Tested by

no test coverage detected