Package org.mariadb.jdbc.client.impl
Class StandardReadableByteBuf
- java.lang.Object
-
- org.mariadb.jdbc.client.impl.StandardReadableByteBuf
-
- All Implemented Interfaces:
org.mariadb.jdbc.client.ReadableByteBuf
public final class StandardReadableByteBuf extends Object implements org.mariadb.jdbc.client.ReadableByteBuf
-
-
Constructor Summary
Constructors Constructor Description StandardReadableByteBuf(MutableInt sequence, byte[] buf, int limit)
-
Method Summary
-
-
-
Constructor Detail
-
StandardReadableByteBuf
public StandardReadableByteBuf(MutableInt sequence, byte[] buf, int limit)
-
-
Method Detail
-
readableBytes
public int readableBytes()
- Specified by:
readableBytesin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
pos
public int pos()
- Specified by:
posin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
buf
public byte[] buf()
- Specified by:
bufin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
buf
public StandardReadableByteBuf buf(byte[] buf, int limit)
- Specified by:
bufin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
pos
public void pos(int pos)
- Specified by:
posin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
mark
public void mark()
- Specified by:
markin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
reset
public void reset()
- Specified by:
resetin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
skip
public void skip()
- Specified by:
skipin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
skip
public StandardReadableByteBuf skip(int length)
- Specified by:
skipin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readBlob
public MariaDbBlob readBlob(int length)
- Specified by:
readBlobin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
getSequence
public MutableInt getSequence()
- Specified by:
getSequencein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
getByte
public byte getByte()
- Specified by:
getBytein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
getByte
public byte getByte(int index)
- Specified by:
getBytein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
getUnsignedByte
public short getUnsignedByte()
- Specified by:
getUnsignedBytein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readLengthNotNull
public int readLengthNotNull()
- Specified by:
readLengthNotNullin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
skipIdentifier
public int skipIdentifier()
Identifier can have a max length of 256 (alias) So no need to check whole length encoding.- Specified by:
skipIdentifierin interfaceorg.mariadb.jdbc.client.ReadableByteBuf- Returns:
- current pos
-
readLength
public Integer readLength()
- Specified by:
readLengthin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readByte
public byte readByte()
- Specified by:
readBytein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readUnsignedByte
public short readUnsignedByte()
- Specified by:
readUnsignedBytein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readShort
public short readShort()
- Specified by:
readShortin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readUnsignedShort
public int readUnsignedShort()
- Specified by:
readUnsignedShortin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readMedium
public int readMedium()
- Specified by:
readMediumin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readUnsignedMedium
public int readUnsignedMedium()
- Specified by:
readUnsignedMediumin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readInt
public int readInt()
- Specified by:
readIntin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readIntBE
public int readIntBE()
- Specified by:
readIntBEin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readUnsignedInt
public long readUnsignedInt()
- Specified by:
readUnsignedIntin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readLong
public long readLong()
- Specified by:
readLongin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readLongBE
public long readLongBE()
- Specified by:
readLongBEin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readBytes
public StandardReadableByteBuf readBytes(byte[] dst)
- Specified by:
readBytesin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readBytesNullEnd
public byte[] readBytesNullEnd()
- Specified by:
readBytesNullEndin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readLengthBuffer
public StandardReadableByteBuf readLengthBuffer()
- Specified by:
readLengthBufferin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readString
public String readString(int length)
- Specified by:
readStringin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readAscii
public String readAscii(int length)
- Specified by:
readAsciiin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readStringNullEnd
public String readStringNullEnd()
- Specified by:
readStringNullEndin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readStringEof
public String readStringEof()
- Specified by:
readStringEofin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readFloat
public float readFloat()
- Specified by:
readFloatin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readDouble
public double readDouble()
- Specified by:
readDoublein interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
readDoubleBE
public double readDoubleBE()
- Specified by:
readDoubleBEin interfaceorg.mariadb.jdbc.client.ReadableByteBuf
-
-