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

Method rrToWire

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

Source from the content-addressed store, hash-verified

198}
199
200void
201rrToWire(DNSOutput out, Compression c, boolean canonical) {
202 alg.toWire(out, null, canonical);
203
204 out.writeU32(timeInception.getTime() / 1000);
205 out.writeU32(timeExpire.getTime() / 1000);
206
207 out.writeU16(mode);
208 out.writeU16(error);
209
210 if (key != null) {
211 out.writeU16(key.length);
212 out.writeByteArray(key);
213 }
214 else
215 out.writeU16(0);
216
217 if (other != null) {
218 out.writeU16(other.length);
219 out.writeByteArray(other);
220 }
221 else
222 out.writeU16(0);
223}
224
225}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected