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

Method writeU16

src/main/java/core/org/xbill/DNS/DNSOutput.java:119–125  ·  view source on GitHub ↗

Writes an unsigned 16 bit value to the stream. @param val The value to be written

(int val)

Source from the content-addressed store, hash-verified

117 * @param val The value to be written
118 */
119public void
120writeU16(int val) {
121 check(val, 16);
122 need(2);
123 array[pos++] = (byte)((val >>> 8) & 0xFF);
124 array[pos++] = (byte)(val & 0xFF);
125}
126
127/**
128 * Writes an unsigned 16 bit value to the specified position in the stream.

Callers 15

digestRRsetMethod · 0.95
fromRSAPublicKeyMethod · 0.95
generateMethod · 0.95
applyStreamMethod · 0.95
verifyMethod · 0.95
verifyMethod · 0.95
toWireMethod · 0.95
toWireMethod · 0.95
rrToWireMethod · 0.80
toWireMethod · 0.80
toWireCanonicalMethod · 0.80
rrToWireMethod · 0.80

Calls 2

checkMethod · 0.95
needMethod · 0.95

Tested by

no test coverage detected