Package de.mid.innovator.util
Class DynamicByteBuffers
java.lang.Object
de.mid.innovator.util.DynamicByteBuffers
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDynamicByteBuffers(byte[] ba) DynamicByteBuffers(int size) DynamicByteBuffers(List<byte[]> baList) -
Method Summary
Modifier and TypeMethodDescriptionvoidannounceCapacity(long amount) intcapacity()voidclear()booleanvoidflip()byteget()voidget(byte[] dst) byteget(int index) chargetChar()chargetChar(int index) intgetInt()intgetInt(int index) longgetLong()longgetLong(int index) shortgetShort()shortgetShort(int index) inthashCode()longlimit()voidlimit(long limit) voidmark()longposition()position(long newPosition) put(byte b) put(byte[] src) putChar(char value) putInt(int value) putInt(int value, int index) putLong(long value) putLong(long value, long index) putShort(short value) putShort(short value, int index) intreset()rewind()List<byte[]> toString()
-
Field Details
-
MAX_BUFFER_SIZE
public static final int MAX_BUFFER_SIZE- See Also:
-
-
Constructor Details
-
DynamicByteBuffers
public DynamicByteBuffers() -
DynamicByteBuffers
public DynamicByteBuffers(int size) -
DynamicByteBuffers
-
DynamicByteBuffers
public DynamicByteBuffers(byte[] ba) -
DynamicByteBuffers
-
-
Method Details
-
getFirstBuffer
-
position
public long position() -
position
-
toArrayList
-
put
-
put
-
putChar
-
putInt
-
putInt
-
putLong
-
putLong
-
putShort
-
putShort
-
remaining
public int remaining() -
reset
-
rewind
-
toString
-
get
public byte get() -
get
public void get(byte[] dst) -
get
public byte get(int index) -
getChar
public char getChar() -
getChar
public char getChar(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) -
putString
-
getString
-
capacity
public int capacity() -
clear
public void clear() -
flip
public void flip() -
limit
public long limit() -
limit
public void limit(long limit) -
equals
-
hashCode
public int hashCode() -
mark
public void mark() -
announceCapacity
public void announceCapacity(long amount)
-