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

Method rrToWire

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

Source from the content-addressed store, hash-verified

280}
281
282void
283rrToWire(DNSOutput out, Compression c, boolean canonical) {
284 out.writeU8(0); /* version */
285 out.writeU8(toLOCformat(size));
286 out.writeU8(toLOCformat(hPrecision));
287 out.writeU8(toLOCformat(vPrecision));
288 out.writeU32(latitude);
289 out.writeU32(longitude);
290 out.writeU32(altitude);
291}
292
293private static long
294parseLOCformat(int b) throws WireParseException {

Callers

nothing calls this directly

Calls 3

toLOCformatMethod · 0.95
writeU8Method · 0.80
writeU32Method · 0.80

Tested by

no test coverage detected