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

Method restoreActive

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

Restores the previously set active region. This differs from setActive() in that restoreActive() takes an absolute position, and setActive takes an offset from the current location. @param pos The end of the active region.

(int pos)

Source from the content-addressed store, hash-verified

101 * @param pos The end of the active region.
102 */
103public void
104restoreActive(int pos) {
105 if (pos > byteBuffer.capacity()) {
106 throw new IllegalArgumentException("cannot set active " +
107 "region past end of input");
108 }
109 byteBuffer.limit(byteBuffer.position());
110}
111
112/**
113 * Resets the current position of the input stream to the specified index,

Callers 1

fromWireMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected