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

Method rrFromWire

src/main/java/core/org/xbill/DNS/LOCRecord.java:60–74  ·  view source on GitHub ↗
(DNSInput in)

Source from the content-addressed store, hash-verified

58}
59
60void
61rrFromWire(DNSInput in) throws IOException {
62 int version;
63
64 version = in.readU8();
65 if (version != 0)
66 throw new WireParseException("Invalid LOC version");
67
68 size = parseLOCformat(in.readU8());
69 hPrecision = parseLOCformat(in.readU8());
70 vPrecision = parseLOCformat(in.readU8());
71 latitude = in.readU32();
72 longitude = in.readU32();
73 altitude = in.readU32();
74}
75
76private double
77parseFixedPoint(String s)

Callers

nothing calls this directly

Calls 3

parseLOCformatMethod · 0.95
readU8Method · 0.80
readU32Method · 0.80

Tested by

no test coverage detected