Package de.mid.innovator.util
Class DynamicByteBuffer
java.lang.Object
de.mid.innovator.util.DynamicByteBuffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceCapacity(int amount) byte[]array()intcapacity()clear()booleanflip()byteget()get(byte[] dst) get(byte[] dst, int offset, int length) byteget(int index) bytegetByte()chargetChar()chargetChar(int index) doubledoublegetDouble(int index) floatgetFloat()floatgetFloat(int index) intgetInt()intgetInt(int index) longgetLong()longgetLong(int index) shortgetShort()shortgetShort(int index) inthashCode()intlimit()limit(int newLimit) voidmark()intposition()position(int newPosition) put(byte b) put(byte[] src) put(byte[] src, int offset, int length) putChar(char value) putInt(int value) putInt(int value, int index) putShort(short value) putShort(short value, int index) intreset()rewind()toString()
-
Constructor Details
-
DynamicByteBuffer
public DynamicByteBuffer() -
DynamicByteBuffer
public DynamicByteBuffer(int size) -
DynamicByteBuffer
-
DynamicByteBuffer
public DynamicByteBuffer(byte[] ba)
-
-
Method Details
-
position
public int position() -
position
-
put
-
put
-
put
-
putChar
-
putInt
-
putInt
-
putShort
-
putShort
-
remaining
public int remaining() -
reset
-
rewind
-
toString
-
array
public byte[] array() -
get
public byte get() -
get
-
get
-
get
public byte get(int index) -
getChar
public char getChar() -
getChar
public char getChar(int index) -
getDouble
public double getDouble() -
getDouble
public double getDouble(int index) -
getFloat
public float getFloat() -
getFloat
public float getFloat(int index) -
getInt
public int getInt() -
getInt
public int getInt(int index) -
getLong
public long getLong() -
getLong
public long getLong(int index) -
getShort
public short getShort() -
getShort
public short getShort(int index) -
getByte
public byte getByte() -
putString
-
getString
-
capacity
public int capacity() -
clear
-
flip
-
limit
public int limit() -
limit
-
equals
-
hashCode
public int hashCode() -
mark
public void mark() -
announceCapacity
public void announceCapacity(int amount)
-