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

Method writeU32

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

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

(long val)

Source from the content-addressed store, hash-verified

144 * @param val The value to be written
145 */
146public void
147writeU32(long val) {
148 check(val, 32);
149 need(4);
150 array[pos++] = (byte)((val >>> 24) & 0xFF);
151 array[pos++] = (byte)((val >>> 16) & 0xFF);
152 array[pos++] = (byte)((val >>> 8) & 0xFF);
153 array[pos++] = (byte)(val & 0xFF);
154}
155
156/**
157 * Writes a byte array to the stream.

Callers 14

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

Calls 2

checkMethod · 0.95
needMethod · 0.95

Tested by

no test coverage detected