@Override
    public long position() throws ClosedChannelException {
      checkIsOpen();
      return buffer.position();
    }
Implements a SeekableByteChannel for testing.

<p>The implementation is backed by a ByteBuffer.
java_src/src/main/java/com/google/crypto/tink/testing/StreamingTestUtil.java