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

Method parseLOCformat

src/main/java/core/org/xbill/DNS/LOCRecord.java:293–302  ·  view source on GitHub ↗
(int b)

Source from the content-addressed store, hash-verified

291}
292
293private static long
294parseLOCformat(int b) throws WireParseException {
295 long out = b >> 4;
296 int exp = b & 0xF;
297 if (out > 9 || exp > 9)
298 throw new WireParseException("Invalid LOC Encoding");
299 while (exp-- > 0)
300 out *= 10;
301 return (out);
302}
303
304private int
305toLOCformat(long l) {

Callers 1

rrFromWireMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected