Package org.mariadb.jdbc.client
Class ReadableByteBuf
java.lang.Object
org.mariadb.jdbc.client.ReadableByteBuf
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
buf()
buf
(byte[] buf, int limit) byte
getByte()
byte
getByte
(int index) short
void
mark()
int
pos()
void
pos
(int pos) int
readAscii
(int length) readBlob
(int length) byte
readByte()
readBytes
(byte[] dst) byte[]
double
double
float
int
readInt()
int
int
long
readLong()
long
int
short
readString
(int length) short
long
int
int
void
reset()
void
skip()
skip
(int length) int
Identifier can have a max length of 256 (alias) So no need to check whole length encoding.
-
Field Details
-
sequence
-
limit
private int limit -
buf
private byte[] buf -
pos
private int pos -
mark
private int mark
-
-
Constructor Details
-
ReadableByteBuf
-
-
Method Details
-
readableBytes
public int readableBytes() -
pos
public int pos() -
buf
public byte[] buf() -
buf
-
pos
public void pos(int pos) -
mark
public void mark() -
reset
public void reset() -
skip
public void skip() -
skip
-
readBlob
-
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
-
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
-
readBytesNullEnd
public byte[] readBytesNullEnd() -
readLengthBuffer
-
readString
-
readAscii
-
readStringNullEnd
-
readStringEof
-
readFloat
public float readFloat() -
readDouble
public double readDouble() -
readDoubleBE
public double readDoubleBE()
-