Class ByteBufferReader
java.lang.Object
zombie.core.network.ByteBufferReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]array()intcapacity()voidclear()voidflip()voidget(byte[] dst) voidget(byte[] dst, int offet, int length) booleanbytegetByte()chargetChar()double<E extends Enum<E>>
EfloatgetFloat()intgetInt()longgetLong()shortgetShort()getUTF()intlimit()voidmark()intposition()voidposition(int newPosition) voidput(byte[] src, int offset, int length) voidput(ByteBuffer src) intvoidreset()voidrewind()
-
Field Details
-
bb
-
-
Constructor Details
-
ByteBufferReader
-
-
Method Details
-
getBoolean
public boolean getBoolean() -
getByte
public byte getByte() -
getChar
public char getChar() -
getDouble
public double getDouble() -
getFloat
public float getFloat() -
getInt
public int getInt() -
getLong
public long getLong() -
getShort
public short getShort() -
getUTF
-
getEnum
-
position
public void position(int newPosition) -
position
public int position() -
flip
public void flip() -
clear
public void clear() -
put
public void put(byte[] src, int offset, int length) -
limit
public int limit() -
put
-
rewind
public void rewind() -
capacity
public int capacity() -
array
public byte[] array() -
remaining
public int remaining() -
get
public void get(byte[] dst) -
get
public void get(byte[] dst, int offet, int length) -
mark
public void mark() -
reset
public void reset()
-