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

Method jump

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

Resets the current position of the input stream to the specified index, and clears the active region. @param index The position to continue parsing at. @throws IllegalArgumentException The index is not within the input.

(int index)

Source from the content-addressed store, hash-verified

116 * @throws IllegalArgumentException The index is not within the input.
117 */
118public void
119jump(int index) {
120 if (index >= byteBuffer.capacity()) {
121 throw new IllegalArgumentException("cannot jump past " +
122 "end of input");
123 }
124 byteBuffer.position(index);
125 byteBuffer.limit(byteBuffer.capacity());
126}
127
128/**
129 * Saves the current state of the input stream. Both the current position and

Callers 2

NameMethod · 0.45
sectionToWireMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected