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

Method checkU8

src/main/java/core/org/xbill/DNS/Record.java:688–695  ·  view source on GitHub ↗
(String field, int val)

Source from the content-addressed store, hash-verified

686
687/* Checks that an int contains an unsigned 8 bit value */
688static int
689checkU8(String field, int val) {
690 if (val < 0 || val > 0xFF)
691 throw new IllegalArgumentException("\"" + field + "\" " + val +
692 " must be an unsigned 8 " +
693 "bit value");
694 return val;
695}
696
697/* Checks that an int contains an unsigned 16 bit value */
698static int

Callers 15

IPSECKEYRecordMethod · 0.80
CERTRecordMethod · 0.80
DSRecordMethod · 0.80
TLSARecordMethod · 0.80
NSEC3RecordMethod · 0.80
NSEC3PARAMRecordMethod · 0.80
SMIMEARecordMethod · 0.80
WKSRecordMethod · 0.80
SIGBaseMethod · 0.80
CAARecordMethod · 0.80
SSHFPRecordMethod · 0.80
A6RecordMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected