test_class.file: cache/src/test/java/net/runelite/cache/io/OutputStreamTest.java
test_class.identifier: OutputStreamTest
test_case.body: @Test
  	public void testWriteBigSmart()
  	{
  		OutputStream os = new OutputStream();
  		os.writeBigSmart(42);
  		os.writeBigSmart(70000);
  		os.writeBigSmart(65535);
  
  		InputStream is = new InputStream(os.getArray());
  		assertEquals(42, is.readBigSmart());
  		assertEquals(70000, is.readBigSmart());
  		assertEquals(65535, is.readBigSmart());
  	}
test_case.class_method_signature: OutputStreamTest.testWriteBigSmart()
test_case.full_signature: @Test public void testWriteBigSmart()
test_case.identifier: testWriteBigSmart
test_case.invocations: writeBigSmart writeBigSmart writeBigSmart getArray assertEquals readBigSmart assertEquals readBigSmart assertEquals readBigSmart
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWriteBigSmart()
focal_class.declarator: buffer
focal_class.modifier: private
focal_class.original_string: private ByteBuffer buffer;
focal_class.type: ByteBuffer
focal_class.var_name: buffer
focal_class.file: cache/src/main/java/net/runelite/cache/io/OutputStream.java
focal_class.identifier: OutputStream
focal_class.class_method_signature: OutputStream.OutputStream(int capacity)
focal_class.full_signature: public  OutputStream(int capacity)
focal_class.identifier: OutputStream
focal_class.modifiers: public
focal_class.parameters: (int capacity)
focal_class.signature:  OutputStream(int capacity)
focal_class.class_method_signature: OutputStream.OutputStream()
focal_class.full_signature: public  OutputStream()
focal_class.identifier: OutputStream
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  OutputStream()
focal_class.class_method_signature: OutputStream.getArray()
focal_class.full_signature: public byte[] getArray()
focal_class.identifier: getArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] getArray()
focal_class.class_method_signature: OutputStream.ensureRemaining(int remaining)
focal_class.full_signature: private void ensureRemaining(int remaining)
focal_class.identifier: ensureRemaining
focal_class.modifiers: private
focal_class.parameters: (int remaining)
focal_class.return: void
focal_class.signature: void ensureRemaining(int remaining)
focal_class.class_method_signature: OutputStream.skip(int length)
focal_class.full_signature: public void skip(int length)
focal_class.identifier: skip
focal_class.modifiers: public
focal_class.parameters: (int length)
focal_class.return: void
focal_class.signature: void skip(int length)
focal_class.class_method_signature: OutputStream.getOffset()
focal_class.full_signature: public int getOffset()
focal_class.identifier: getOffset
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getOffset()
focal_class.class_method_signature: OutputStream.setOffset(int offset)
focal_class.full_signature: public void setOffset(int offset)
focal_class.identifier: setOffset
focal_class.modifiers: public
focal_class.parameters: (int offset)
focal_class.return: void
focal_class.signature: void setOffset(int offset)
focal_class.class_method_signature: OutputStream.writeBytes(byte[] b)
focal_class.full_signature: public void writeBytes(byte[] b)
focal_class.identifier: writeBytes
focal_class.modifiers: public
focal_class.parameters: (byte[] b)
focal_class.return: void
focal_class.signature: void writeBytes(byte[] b)
focal_class.class_method_signature: OutputStream.writeBytes(byte[] b, int offset, int length)
focal_class.full_signature: public void writeBytes(byte[] b, int offset, int length)
focal_class.identifier: writeBytes
focal_class.modifiers: public
focal_class.parameters: (byte[] b, int offset, int length)
focal_class.return: void
focal_class.signature: void writeBytes(byte[] b, int offset, int length)
focal_class.class_method_signature: OutputStream.writeByte(int i)
focal_class.full_signature: public void writeByte(int i)
focal_class.identifier: writeByte
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: void
focal_class.signature: void writeByte(int i)
focal_class.class_method_signature: OutputStream.writeBigSmart(int value)
focal_class.full_signature: public void writeBigSmart(int value)
focal_class.identifier: writeBigSmart
focal_class.modifiers: public
focal_class.parameters: (int value)
focal_class.return: void
focal_class.signature: void writeBigSmart(int value)
focal_class.class_method_signature: OutputStream.writeShort(int i)
focal_class.full_signature: public void writeShort(int i)
focal_class.identifier: writeShort
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: void
focal_class.signature: void writeShort(int i)
focal_class.class_method_signature: OutputStream.writeShortSmart(int value)
focal_class.full_signature: public void writeShortSmart(int value)
focal_class.identifier: writeShortSmart
focal_class.modifiers: public
focal_class.parameters: (int value)
focal_class.return: void
focal_class.signature: void writeShortSmart(int value)
focal_class.class_method_signature: OutputStream.write24BitInt(int i)
focal_class.full_signature: public void write24BitInt(int i)
focal_class.identifier: write24BitInt
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: void
focal_class.signature: void write24BitInt(int i)
focal_class.class_method_signature: OutputStream.writeInt(int i)
focal_class.full_signature: public void writeInt(int i)
focal_class.identifier: writeInt
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: void
focal_class.signature: void writeInt(int i)
focal_class.class_method_signature: OutputStream.writeVarInt(int var1)
focal_class.full_signature: public void writeVarInt(int var1)
focal_class.identifier: writeVarInt
focal_class.modifiers: public
focal_class.parameters: (int var1)
focal_class.return: void
focal_class.signature: void writeVarInt(int var1)
focal_class.class_method_signature: OutputStream.writeLengthFromMark(int var1)
focal_class.full_signature: public void writeLengthFromMark(int var1)
focal_class.identifier: writeLengthFromMark
focal_class.modifiers: public
focal_class.parameters: (int var1)
focal_class.return: void
focal_class.signature: void writeLengthFromMark(int var1)
focal_class.class_method_signature: OutputStream.writeString(String str)
focal_class.full_signature: public void writeString(String str)
focal_class.identifier: writeString
focal_class.modifiers: public
focal_class.parameters: (String str)
focal_class.return: void
focal_class.signature: void writeString(String str)
focal_class.class_method_signature: OutputStream.flip()
focal_class.full_signature: public byte[] flip()
focal_class.identifier: flip
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte[]
focal_class.signature: byte[] flip()
focal_class.class_method_signature: OutputStream.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.superclass: extends java.io.OutputStream
focal_method.body: public void writeBigSmart(int value)
  	{
  		Preconditions.checkArgument(value >= 0);
  		if (value >= 32768)
  		{
  			ensureRemaining(4);
  			this.writeInt((1 << 31) | value);
  		}
  		else
  		{
  			ensureRemaining(2);
  			this.writeShort(value);
  		}
  	}
focal_method.class_method_signature: OutputStream.writeBigSmart(int value)
focal_method.full_signature: public void writeBigSmart(int value)
focal_method.identifier: writeBigSmart
focal_method.invocations: checkArgument ensureRemaining writeInt ensureRemaining writeShort
focal_method.modifiers: public
focal_method.parameters: (int value)
focal_method.return: void
focal_method.signature: void writeBigSmart(int value)