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

Method getFlag

src/main/java/core/org/xbill/DNS/Header.java:131–136  ·  view source on GitHub ↗

Retrieves a flag @see Flags

(int bit)

Source from the content-addressed store, hash-verified

129 * @see Flags
130 */
131public boolean
132getFlag(int bit) {
133 checkFlag(bit);
134 // bits are indexed from left to right
135 return (flags & (1 << (15 - bit))) != 0;
136}
137
138boolean []
139getFlags() {

Callers 6

generateReplyMethod · 0.95
getFlagsMethod · 0.95
printFlagsMethod · 0.95
addMessageMethod · 0.80
MessageMethod · 0.80
sendMethod · 0.80

Calls 1

checkFlagMethod · 0.95

Tested by

no test coverage detected