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

Method setActive

src/main/java/core/org/xbill/DNS/DNSInput.java:71–78  ·  view source on GitHub ↗

Marks the following bytes in the stream as active. @param len The number of bytes in the active region. @throws IllegalArgumentException The number of bytes in the active region is longer than the remainder of the input.

(int len)

Source from the content-addressed store, hash-verified

69 * is longer than the remainder of the input.
70 */
71public void
72setActive(int len) {
73 if (len > byteBuffer.capacity() - byteBuffer.position()) {
74 throw new IllegalArgumentException("cannot set active " +
75 "region past end of input");
76 }
77 byteBuffer.limit(byteBuffer.position() + len);
78}
79
80/**
81 * Clears the active region of the string. Further operations are not

Callers 2

newRecordMethod · 0.80
fromWireMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected