Package org.ngengine.network.protocol
Class GrowableByteBuffer
java.lang.Object
org.ngengine.network.protocol.GrowableByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
capacity()
void
clear()
void
flip()
byte
get()
void
get
(byte[] inputBytes) byte
get
(int index) char
getChar()
char
getChar
(int index) double
double
getDouble
(int index) float
getFloat()
float
getFloat
(int index) int
getInt()
int
getInt
(int index) long
getLong()
long
getLong
(int index) short
getShort()
short
getShort
(int index) int
limit()
void
limit
(int newLimit) int
position()
void
position
(int newPosition) void
put
(byte value) void
put
(byte[] data) void
put
(byte[] data, int offset, int length) void
put
(ByteBuffer data) void
putChar
(char value) void
putDouble
(double value) void
putFloat
(float value) void
putInt
(int value) void
putLong
(long value) void
putShort
(short value) int
slice()
-
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)
-