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

Method check

src/main/java/core/org/xbill/DNS/DNSOutput.java:45–53  ·  view source on GitHub ↗
(long val, int bits)

Source from the content-addressed store, hash-verified

43}
44
45private void
46check(long val, int bits) {
47 long max = 1;
48 max <<= bits;
49 if (val < 0 || val > max) {
50 throw new IllegalArgumentException(val + " out of range for " +
51 bits + " bit value");
52 }
53}
54
55private void
56need(int n) {

Callers 4

writeU8Method · 0.95
writeU16Method · 0.95
writeU16AtMethod · 0.95
writeU32Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected