test_class.file: dubbo-common/src/test/java/org/apache/dubbo/common/io/UnsafeByteArrayInputStreamTest.java
test_class.identifier: UnsafeByteArrayInputStreamTest
test_case.body: @Test
      public void testMark() {
          UnsafeByteArrayInputStream stream = new UnsafeByteArrayInputStream("abc".getBytes(), 1);
          assertThat(stream.markSupported(), is(true));
  
          stream.mark(2);
          stream.read();
          assertThat(stream.position(), is(2));
          stream.reset();
          assertThat(stream.position(), is(1));
      }
test_case.class_method_signature: UnsafeByteArrayInputStreamTest.testMark()
test_case.full_signature: @Test public void testMark()
test_case.identifier: testMark
test_case.invocations: getBytes assertThat markSupported is mark read assertThat position is reset assertThat position is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMark()
focal_class.declarator: mData
focal_class.modifier: protected
focal_class.original_string: protected byte[] mData;
focal_class.type: byte[]
focal_class.var_name: mData
focal_class.declarator: mPosition
focal_class.modifier: protected
focal_class.original_string: protected int mPosition, mLimit, mMark = 0;
focal_class.type: int
focal_class.var_name: mPosition
focal_class.file: dubbo-common/src/main/java/org/apache/dubbo/common/io/UnsafeByteArrayInputStream.java
focal_class.identifier: UnsafeByteArrayInputStream
focal_class.class_method_signature: UnsafeByteArrayInputStream.UnsafeByteArrayInputStream(byte[] buf)
focal_class.full_signature: public  UnsafeByteArrayInputStream(byte[] buf)
focal_class.identifier: UnsafeByteArrayInputStream
focal_class.modifiers: public
focal_class.parameters: (byte[] buf)
focal_class.signature:  UnsafeByteArrayInputStream(byte[] buf)
focal_class.class_method_signature: UnsafeByteArrayInputStream.UnsafeByteArrayInputStream(byte[] buf, int offset)
focal_class.full_signature: public  UnsafeByteArrayInputStream(byte[] buf, int offset)
focal_class.identifier: UnsafeByteArrayInputStream
focal_class.modifiers: public
focal_class.parameters: (byte[] buf, int offset)
focal_class.signature:  UnsafeByteArrayInputStream(byte[] buf, int offset)
focal_class.class_method_signature: UnsafeByteArrayInputStream.UnsafeByteArrayInputStream(byte[] buf, int offset, int length)
focal_class.full_signature: public  UnsafeByteArrayInputStream(byte[] buf, int offset, int length)
focal_class.identifier: UnsafeByteArrayInputStream
focal_class.modifiers: public
focal_class.parameters: (byte[] buf, int offset, int length)
focal_class.signature:  UnsafeByteArrayInputStream(byte[] buf, int offset, int length)
focal_class.class_method_signature: UnsafeByteArrayInputStream.read()
focal_class.full_signature: @Override public int read()
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int read()
focal_class.class_method_signature: UnsafeByteArrayInputStream.read(byte[] b, int off, int len)
focal_class.full_signature: @Override public int read(byte[] b, int off, int len)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] b, int off, int len)
focal_class.return: int
focal_class.signature: int read(byte[] b, int off, int len)
focal_class.class_method_signature: UnsafeByteArrayInputStream.skip(long len)
focal_class.full_signature: @Override public long skip(long len)
focal_class.identifier: skip
focal_class.modifiers: @Override public
focal_class.parameters: (long len)
focal_class.return: long
focal_class.signature: long skip(long len)
focal_class.class_method_signature: UnsafeByteArrayInputStream.available()
focal_class.full_signature: @Override public int available()
focal_class.identifier: available
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int available()
focal_class.class_method_signature: UnsafeByteArrayInputStream.markSupported()
focal_class.full_signature: @Override public boolean markSupported()
focal_class.identifier: markSupported
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean markSupported()
focal_class.class_method_signature: UnsafeByteArrayInputStream.mark(int readAheadLimit)
focal_class.full_signature: @Override public void mark(int readAheadLimit)
focal_class.identifier: mark
focal_class.modifiers: @Override public
focal_class.parameters: (int readAheadLimit)
focal_class.return: void
focal_class.signature: void mark(int readAheadLimit)
focal_class.class_method_signature: UnsafeByteArrayInputStream.reset()
focal_class.full_signature: @Override public void reset()
focal_class.identifier: reset
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: UnsafeByteArrayInputStream.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: UnsafeByteArrayInputStream.position()
focal_class.full_signature: public int position()
focal_class.identifier: position
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int position()
focal_class.class_method_signature: UnsafeByteArrayInputStream.position(int newPosition)
focal_class.full_signature: public void position(int newPosition)
focal_class.identifier: position
focal_class.modifiers: public
focal_class.parameters: (int newPosition)
focal_class.return: void
focal_class.signature: void position(int newPosition)
focal_class.class_method_signature: UnsafeByteArrayInputStream.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.superclass: extends InputStream
focal_method.body: @Override
      public void mark(int readAheadLimit) {
          mMark = mPosition;
      }
focal_method.class_method_signature: UnsafeByteArrayInputStream.mark(int readAheadLimit)
focal_method.full_signature: @Override public void mark(int readAheadLimit)
focal_method.identifier: mark
focal_method.modifiers: @Override public
focal_method.parameters: (int readAheadLimit)
focal_method.return: void
focal_method.signature: void mark(int readAheadLimit)