java.lang.Object
it.auties.buffer.ByteBuffer
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferallocate(int length) append(byte... array) append(ByteBuffer array) appendNullable(byte... array) appendNullable(ByteBuffer array) assertSize(int size) at(int index) clear()booleancontentEquals(Object other) copy()cut(int end) static ByteBufferempty()booleanfill(char value) fill(char value, int length) indexOf(char entry) booleanbooleanstatic ByteBufferstatic ByteBufferof(byte... input) static ByteBufferof(byte[]... input) static ByteBufferof(int size) static ByteBufferstatic ByteBufferstatic ByteBufferstatic ByteBufferofNullable(String input) static ByteBufferofNullableBase64(String input) static ByteBufferofNullableHex(String input) prepend(byte... array) prepend(ByteBuffer array) prependNullable(byte... array) prependNullable(ByteBuffer array) static ByteBufferrandom(int length) intreadBigInt(int length) readBigInt(int index, int length) readBuffer(int length) readBuffer(int index, int length) bytereadByte()bytereadByte(int index) byte[]readBytes(int length) byte[]readBytes(int index, int length) intreadInt()intreadInt(int index) longreadLong()longreadLong(int index) shortshortreadShort(int index) intintreadUnsignedByte(int index) longlongreadUnsignedInt(int index) readUnsignedLong(int index) intintreadUnsignedShort(int index) intsize()slice(int start) slice(int start, int end) toBase64()byte[]toHex()toString()intwriteBigInt(BigInteger input) writeBigInt(BigInteger input, int index) writeByte(int input) writeByte(int input, int index) writeBytes(byte[] bytes) writeBytes(byte[] bytes, int index) writeInt(int input) writeInt(int input, int index) writeLong(long input) writeLong(long input, int index) writeNullableBigInt(BigInteger input) writeNullableBigInt(BigInteger input, int index) writeNullableBytes(byte[] bytes, int index) writeShort(int input) writeShort(int input, int index) writeUnsignedByte(int input) writeUnsignedByte(int input, int index) writeUnsignedInt(int input) writeUnsignedInt(int input, int index) writeUnsignedLong(long input) writeUnsignedLong(long input, int index) writeUnsignedShort(short input) writeUnsignedShort(short input, int index)
-
Method Details
-
newBuffer
-
empty
-
of
-
of
-
of
-
of
-
ofNullable
-
ofBase64
-
ofNullableBase64
-
ofHex
-
ofNullableHex
-
random
-
allocate
-
prepend
-
prependNullable
-
prepend
-
prependNullable
-
append
-
appendNullable
-
append
-
appendNullable
-
cut
-
slice
-
slice
-
fill
-
fill
-
fill
-
fill
-
at
-
indexOf
-
indexOf
-
assertSize
-
writeByte
-
writeByte
-
writeUnsignedByte
-
writeUnsignedByte
-
writeShort
-
writeShort
-
writeUnsignedShort
-
writeUnsignedShort
-
writeInt
-
writeInt
-
writeUnsignedInt
-
writeUnsignedInt
-
writeLong
-
writeLong
-
writeUnsignedLong
-
writeUnsignedLong
-
writeBigInt
-
writeBigInt
-
writeNullableBigInt
-
writeNullableBigInt
-
writeBytes
-
writeBytes
-
writeNullableBytes
-
readByte
public byte readByte() -
readByte
public byte readByte(int index) -
readUnsignedByte
public int readUnsignedByte() -
readUnsignedByte
public int readUnsignedByte(int index) -
readShort
public short readShort() -
readShort
public short readShort(int index) -
readUnsignedShort
public int readUnsignedShort() -
readUnsignedShort
public int readUnsignedShort(int index) -
readInt
public int readInt() -
readInt
public int readInt(int index) -
readUnsignedInt
public long readUnsignedInt() -
readUnsignedInt
public long readUnsignedInt(int index) -
readLong
public long readLong() -
readLong
public long readLong(int index) -
readUnsignedLong
-
readUnsignedLong
-
readBigInt
-
readBigInt
-
readBuffer
-
readBuffer
-
readBytes
public byte[] readBytes(int length) -
readBytes
public byte[] readBytes(int index, int length) -
size
public int size() -
readableBytes
public int readableBytes() -
writableBytes
public int writableBytes() -
isReadable
public boolean isReadable() -
isWritable
public boolean isWritable() -
toByteArray
public byte[] toByteArray() -
toNioBuffer
-
copy
-
clear
-
remaining
-
toString
-
toOutputStream
- Throws:
IOException
-
toHex
-
toBase64
-
equals
-
contentEquals
-