test_class.file: dubbo-common/src/test/java/com/alibaba/dubbo/common/io/UnsafeByteArrayOutputStreamTest.java
test_class.identifier: UnsafeByteArrayOutputStreamTest
test_case.body: @Test
      public void testToByteBuffer() {
          UnsafeByteArrayOutputStream outputStream = new UnsafeByteArrayOutputStream(1);
          outputStream.write((int) 'a');
  
          ByteBuffer byteBuffer = outputStream.toByteBuffer();
          assertThat(byteBuffer.get(), is("a".getBytes()[0]));
      }
test_case.class_method_signature: UnsafeByteArrayOutputStreamTest.testToByteBuffer()
test_case.full_signature: @Test public void testToByteBuffer()
test_case.identifier: testToByteBuffer
test_case.invocations: write toByteBuffer assertThat get is getBytes
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToByteBuffer()
focal_class.declarator: mBuffer[]
focal_class.modifier: protected
focal_class.original_string: protected byte mBuffer[];
focal_class.type: byte
focal_class.var_name: mBuffer
focal_class.declarator: mCount
focal_class.modifier: protected
focal_class.original_string: protected int mCount;
focal_class.type: int
focal_class.var_name: mCount
focal_class.file: dubbo-common/src/main/java/com/alibaba/dubbo/common/io/UnsafeByteArrayOutputStream.java
focal_class.identifier: UnsafeByteArrayOutputStream
focal_class.class_method_signature: UnsafeByteArrayOutputStream.UnsafeByteArrayOutputStream()
focal_class.full_signature: public  UnsafeByteArrayOutputStream()
focal_class.identifier: UnsafeByteArrayOutputStream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  UnsafeByteArrayOutputStream()
focal_class.class_method_signature: UnsafeByteArrayOutputStream.UnsafeByteArrayOutputStream(int size)
focal_class.full_signature: public  UnsafeByteArrayOutputStream(int size)
focal_class.identifier: UnsafeByteArrayOutputStream
focal_class.modifiers: public
focal_class.parameters: (int size)
focal_class.signature:  UnsafeByteArrayOutputStream(int size)
focal_class.class_method_signature: UnsafeByteArrayOutputStream.write(int b)
focal_class.full_signature: @Override public void write(int b)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (int b)
focal_class.return: void
focal_class.signature: void write(int b)
focal_class.class_method_signature: UnsafeByteArrayOutputStream.write(byte b[], int off, int len)
focal_class.full_signature: @Override public void write(byte b[], int off, int len)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (byte b[], int off, int len)
focal_class.return: void
focal_class.signature: void write(byte b[], int off, int len)
focal_class.class_method_signature: UnsafeByteArrayOutputStream.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.class_method_signature: UnsafeByteArrayOutputStream.reset()
focal_class.full_signature: public void reset()
focal_class.identifier: reset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void reset()
focal_class.class_method_signature: UnsafeByteArrayOutputStream.toByteArray()
focal_class.full_signature: public byte[] toByteArray()
focal_class.identifier: toByteArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray()
focal_class.class_method_signature: UnsafeByteArrayOutputStream.toByteBuffer()
focal_class.full_signature: public ByteBuffer toByteBuffer()
focal_class.identifier: toByteBuffer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ByteBuffer
focal_class.signature: ByteBuffer toByteBuffer()
focal_class.class_method_signature: UnsafeByteArrayOutputStream.writeTo(OutputStream out)
focal_class.full_signature: public void writeTo(OutputStream out)
focal_class.identifier: writeTo
focal_class.modifiers: public
focal_class.parameters: (OutputStream out)
focal_class.return: void
focal_class.signature: void writeTo(OutputStream out)
focal_class.class_method_signature: UnsafeByteArrayOutputStream.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: UnsafeByteArrayOutputStream.toString(String charset)
focal_class.full_signature: public String toString(String charset)
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: (String charset)
focal_class.return: String
focal_class.signature: String toString(String charset)
focal_class.class_method_signature: UnsafeByteArrayOutputStream.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.superclass: extends OutputStream
focal_method.body: public ByteBuffer toByteBuffer() {
          return ByteBuffer.wrap(mBuffer, 0, mCount);
      }
focal_method.class_method_signature: UnsafeByteArrayOutputStream.toByteBuffer()
focal_method.full_signature: public ByteBuffer toByteBuffer()
focal_method.identifier: toByteBuffer
focal_method.invocations: wrap
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: ByteBuffer
focal_method.signature: ByteBuffer toByteBuffer()