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

Method need

src/main/java/core/org/xbill/DNS/DNSOutput.java:55–67  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

53}
54
55private void
56need(int n) {
57 if (array.length - pos >= n) {
58 return;
59 }
60 int newsize = array.length * 2;
61 if (newsize < pos + n) {
62 newsize = pos + n;
63 }
64 byte [] newarray = new byte[newsize];
65 System.arraycopy(array, 0, newarray, 0, pos);
66 array = newarray;
67}
68
69/**
70 * Resets the current position of the output stream to the specified index.

Callers 5

writeU8Method · 0.95
writeU16Method · 0.95
writeU32Method · 0.95
writeByteArrayMethod · 0.95
writeCountedStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected