public final class StandardReadableByteBuf extends Object implements com.singlestore.jdbc.client.ReadableByteBuf
| Constructor and Description |
|---|
StandardReadableByteBuf(MutableInt sequence,
byte[] buf,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
buf() |
StandardReadableByteBuf |
buf(byte[] buf,
int limit) |
byte |
getByte() |
byte |
getByte(int index) |
MutableInt |
getSequence() |
short |
getUnsignedByte() |
void |
mark() |
int |
pos() |
void |
pos(int pos) |
int |
readableBytes() |
String |
readAscii(int length) |
SingleStoreBlob |
readBlob(int length) |
byte |
readByte() |
com.singlestore.jdbc.client.ReadableByteBuf |
readBytes(byte[] dst) |
byte[] |
readBytesNullEnd() |
double |
readDouble() |
double |
readDoubleBE() |
float |
readFloat() |
int |
readInt() |
int |
readIntBE() |
Integer |
readLength() |
StandardReadableByteBuf |
readLengthBuffer() |
int |
readLengthNotNull() |
long |
readLong() |
long |
readLongBE() |
int |
readMedium() |
short |
readShort() |
String |
readString(int length) |
String |
readStringEof() |
String |
readStringNullEnd() |
short |
readUnsignedByte() |
long |
readUnsignedInt() |
int |
readUnsignedMedium() |
int |
readUnsignedShort() |
void |
reset() |
void |
skip() |
StandardReadableByteBuf |
skip(int length) |
int |
skipIdentifier()
Identifier can have a max length of 256 (alias) So no need to check whole length encoding.
|
public StandardReadableByteBuf(MutableInt sequence, byte[] buf, int limit)
public int readableBytes()
readableBytes in interface com.singlestore.jdbc.client.ReadableByteBufpublic int pos()
pos in interface com.singlestore.jdbc.client.ReadableByteBufpublic byte[] buf()
buf in interface com.singlestore.jdbc.client.ReadableByteBufpublic StandardReadableByteBuf buf(byte[] buf, int limit)
buf in interface com.singlestore.jdbc.client.ReadableByteBufpublic void pos(int pos)
pos in interface com.singlestore.jdbc.client.ReadableByteBufpublic void mark()
mark in interface com.singlestore.jdbc.client.ReadableByteBufpublic void reset()
reset in interface com.singlestore.jdbc.client.ReadableByteBufpublic void skip()
skip in interface com.singlestore.jdbc.client.ReadableByteBufpublic StandardReadableByteBuf skip(int length)
skip in interface com.singlestore.jdbc.client.ReadableByteBufpublic SingleStoreBlob readBlob(int length)
readBlob in interface com.singlestore.jdbc.client.ReadableByteBufpublic MutableInt getSequence()
getSequence in interface com.singlestore.jdbc.client.ReadableByteBufpublic byte getByte()
getByte in interface com.singlestore.jdbc.client.ReadableByteBufpublic byte getByte(int index)
getByte in interface com.singlestore.jdbc.client.ReadableByteBufpublic short getUnsignedByte()
getUnsignedByte in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readLengthNotNull()
readLengthNotNull in interface com.singlestore.jdbc.client.ReadableByteBufpublic int skipIdentifier()
skipIdentifier in interface com.singlestore.jdbc.client.ReadableByteBufpublic Integer readLength()
readLength in interface com.singlestore.jdbc.client.ReadableByteBufpublic byte readByte()
readByte in interface com.singlestore.jdbc.client.ReadableByteBufpublic short readUnsignedByte()
readUnsignedByte in interface com.singlestore.jdbc.client.ReadableByteBufpublic short readShort()
readShort in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readUnsignedShort()
readUnsignedShort in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readMedium()
readMedium in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readUnsignedMedium()
readUnsignedMedium in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readInt()
readInt in interface com.singlestore.jdbc.client.ReadableByteBufpublic int readIntBE()
readIntBE in interface com.singlestore.jdbc.client.ReadableByteBufpublic long readUnsignedInt()
readUnsignedInt in interface com.singlestore.jdbc.client.ReadableByteBufpublic long readLong()
readLong in interface com.singlestore.jdbc.client.ReadableByteBufpublic long readLongBE()
readLongBE in interface com.singlestore.jdbc.client.ReadableByteBufpublic com.singlestore.jdbc.client.ReadableByteBuf readBytes(byte[] dst)
readBytes in interface com.singlestore.jdbc.client.ReadableByteBufpublic byte[] readBytesNullEnd()
readBytesNullEnd in interface com.singlestore.jdbc.client.ReadableByteBufpublic StandardReadableByteBuf readLengthBuffer()
readLengthBuffer in interface com.singlestore.jdbc.client.ReadableByteBufpublic String readString(int length)
readString in interface com.singlestore.jdbc.client.ReadableByteBufpublic String readAscii(int length)
readAscii in interface com.singlestore.jdbc.client.ReadableByteBufpublic String readStringNullEnd()
readStringNullEnd in interface com.singlestore.jdbc.client.ReadableByteBufpublic String readStringEof()
readStringEof in interface com.singlestore.jdbc.client.ReadableByteBufpublic float readFloat()
readFloat in interface com.singlestore.jdbc.client.ReadableByteBufpublic double readDouble()
readDouble in interface com.singlestore.jdbc.client.ReadableByteBufpublic double readDoubleBE()
readDoubleBE in interface com.singlestore.jdbc.client.ReadableByteBufCopyright © 2023 SingleStore. All rights reserved.