Class ByteBuf
java.lang.Object
com.swiftmq.impl.mqtt.v311.netty.buffer.ByteBuf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flushTo
(OutputStream out) int
byte
readByte()
void
readBytes
(byte[] b) int
readRetainedSlice
(int length) short
void
reset()
int
size()
void
skipBytes
(int n) writeByte
(int value) writeBytes
(byte[] src) writeBytes
(byte[] src, int srcIndex, int length) writeBytes
(ByteBuf src) writeShort
(int value)
-
Constructor Details
-
ByteBuf
public ByteBuf(int len) -
ByteBuf
public ByteBuf(byte[] buffer) -
ByteBuf
public ByteBuf(byte[] b, int index, int length)
-
-
Method Details
-
duplicate
-
readableBytes
public int readableBytes() -
size
public int size() -
reset
public void reset() -
readUnsignedByte
public short readUnsignedByte() -
readByte
public byte readByte() -
readBytes
public void readBytes(byte[] b) -
writeByte
-
writeShort
-
writeBytes
-
writeBytes
-
writeBytes
-
flushTo
- Throws:
IOException
-
skipBytes
public void skipBytes(int n) -
readerIndex
public int readerIndex() -
readRetainedSlice
-
toString
-