Class ReadableByteBuf

java.lang.Object
org.mariadb.jdbc.client.ReadableByteBuf

public final class ReadableByteBuf extends Object
  • Field Details

    • sequence

      private final MutableInt sequence
    • limit

      private int limit
    • buf

      private byte[] buf
    • pos

      private int pos
    • mark

      private int mark
  • Constructor Details

    • ReadableByteBuf

      public ReadableByteBuf(MutableInt sequence, byte[] buf, int limit)
  • Method Details

    • readableBytes

      public int readableBytes()
    • pos

      public int pos()
    • buf

      public byte[] buf()
    • buf

      public ReadableByteBuf buf(byte[] buf, int limit)
    • pos

      public void pos(int pos)
    • mark

      public void mark()
    • reset

      public void reset()
    • skip

      public void skip()
    • skip

      public ReadableByteBuf skip(int length)
    • readBlob

      public MariaDbBlob readBlob(int length)
    • getSequence

      public MutableInt getSequence()
    • getByte

      public byte getByte()
    • getByte

      public byte getByte(int index)
    • getUnsignedByte

      public short getUnsignedByte()
    • readLengthNotNull

      public int readLengthNotNull()
    • skipIdentifier

      public int skipIdentifier()
      Identifier can have a max length of 256 (alias) So no need to check whole length encoding.
      Returns:
      current pos
    • readLength

      public Integer readLength()
    • readByte

      public byte readByte()
    • readUnsignedByte

      public short readUnsignedByte()
    • readShort

      public short readShort()
    • readUnsignedShort

      public int readUnsignedShort()
    • readMedium

      public int readMedium()
    • readUnsignedMedium

      public int readUnsignedMedium()
    • readInt

      public int readInt()
    • readIntBE

      public int readIntBE()
    • readUnsignedInt

      public long readUnsignedInt()
    • readLong

      public long readLong()
    • readLongBE

      public long readLongBE()
    • readBytes

      public ReadableByteBuf readBytes(byte[] dst)
    • readBytesNullEnd

      public byte[] readBytesNullEnd()
    • readLengthBuffer

      public ReadableByteBuf readLengthBuffer()
    • readString

      public String readString(int length)
    • readAscii

      public String readAscii(int length)
    • readStringNullEnd

      public String readStringNullEnd()
    • readStringEof

      public String readStringEof()
    • readFloat

      public float readFloat()
    • readDouble

      public double readDouble()
    • readDoubleBE

      public double readDoubleBE()