Package org.ngengine.network.protocol
Class GrowableByteBuffer
java.lang.Object
org.ngengine.network.protocol.GrowableByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()voidclear()voidflip()byteget()voidget(byte[] inputBytes) byteget(int index) chargetChar()chargetChar(int index) doubledoublegetDouble(int index) floatgetFloat()floatgetFloat(int index) intgetInt()intgetInt(int index) longgetLong()longgetLong(int index) shortgetShort()shortgetShort(int index) intlimit()voidlimit(int newLimit) intposition()voidposition(int newPosition) voidput(byte value) voidput(byte[] data) voidput(byte[] data, int offset, int length) voidput(ByteBuffer data) voidputChar(char value) voidputDouble(double value) voidputFloat(float value) voidputInt(int value) voidputLong(long value) voidputShort(short value) intslice()
-
Constructor Details
-
GrowableByteBuffer
-
-
Method Details
-
getBuffer
-
remaining
public int remaining() -
put
public void put(byte[] data) -
putShort
public void putShort(short value) -
putInt
public void putInt(int value) -
putLong
public void putLong(long value) -
putFloat
public void putFloat(float value) -
putDouble
public void putDouble(double value) -
putChar
public void putChar(char value) -
put
public void put(byte value) -
put
public void put(byte[] data, int offset, int length) -
get
public byte get() -
get
public byte get(int index) -
getShort
public short getShort() -
getShort
public short getShort(int index) -
getInt
public int getInt() -
getInt
public int getInt(int index) -
getLong
public long getLong() -
getLong
public long getLong(int index) -
getFloat
public float getFloat() -
getFloat
public float getFloat(int index) -
getDouble
public double getDouble() -
getDouble
public double getDouble(int index) -
getChar
public char getChar() -
getChar
public char getChar(int index) -
position
public int position() -
position
public void position(int newPosition) -
flip
public void flip() -
slice
-
limit
public int limit() -
clear
public void clear() -
capacity
public int capacity() -
limit
public void limit(int newLimit) -
put
-
get
public void get(byte[] inputBytes)
-