/** * Similar to {@link java.nio.ByteBuffer#flip()}. Sets length to position, position to * offset. */ @VisibleForTesting PositionedByteRange flip() { clearHashCache(); length = position; position = offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#clear()}. Sets position to 0, length to * capacity. */ @VisibleForTesting PositionedByteRange clear() { clearHashCache(); position = 0; length = bytes.length - offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#flip()}. Sets length to position, position to * offset. */ @VisibleForTesting PositionedByteRange flip() { clearHashCache(); length = position; position = offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#clear()}. Sets position to 0, length to * capacity. */ @VisibleForTesting PositionedByteRange clear() { clearHashCache(); position = 0; length = bytes.length - offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#flip()}. Sets length to position, position to * offset. */ @VisibleForTesting PositionedByteRange flip() { clearHashCache(); length = position; position = offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#flip()}. Sets length to position, position to * offset. */ @VisibleForTesting PositionedByteRange flip() { clearHashCache(); length = position; position = offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#clear()}. Sets position to 0, length to * capacity. */ @VisibleForTesting PositionedByteRange clear() { clearHashCache(); position = 0; length = bytes.length - offset; return this; }
/** * Similar to {@link java.nio.ByteBuffer#clear()}. Sets position to 0, length to * capacity. */ @VisibleForTesting PositionedByteRange clear() { clearHashCache(); position = 0; length = bytes.length - offset; return this; }