Searched refs:originalPosition (Results 1 – 2 of 2) sorted by relevance
112 int originalPosition = (buf.position() + buf.limit()) / 2; in testAsReadOnlyBuffer() local113 buf.position(originalPosition); in testAsReadOnlyBuffer()130 assertEquals(readonly.position(), originalPosition); in testAsReadOnlyBuffer() local134 assertEquals(buf.position(), originalPosition); in testAsReadOnlyBuffer() local242 int originalPosition = (buf.position() + buf.limit()) / 2;243 buf.position(originalPosition);261 assertEquals(duplicate.position(), originalPosition);265 assertEquals(buf.position(), originalPosition);
299 …private static void maybeUpdateBufferPosition(ByteBuffer buffer, int originalPosition, int bytesRe… in maybeUpdateBufferPosition() argument301 buffer.position(bytesReadOrWritten + originalPosition); in maybeUpdateBufferPosition()