java.lang.Object
com.swiftmq.impl.mqtt.v311.netty.buffer.ByteBuf

public class ByteBuf extends Object
  • Constructor Details

    • ByteBuf

      public ByteBuf(int len)
    • ByteBuf

      public ByteBuf(byte[] buffer)
    • ByteBuf

      public ByteBuf(byte[] b, int index, int length)
  • Method Details

    • duplicate

      public ByteBuf 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

      public ByteBuf writeByte(int value)
    • writeShort

      public ByteBuf writeShort(int value)
    • writeBytes

      public ByteBuf writeBytes(byte[] src, int srcIndex, int length)
    • writeBytes

      public ByteBuf writeBytes(byte[] src)
    • writeBytes

      public ByteBuf writeBytes(ByteBuf src)
    • flushTo

      public void flushTo(OutputStream out) throws IOException
      Throws:
      IOException
    • skipBytes

      public void skipBytes(int n)
    • readerIndex

      public int readerIndex()
    • readRetainedSlice

      public ByteBuf readRetainedSlice(int length)
    • toString

      public String toString(int index, int len, Charset charset)