Current reader offset in the buffer.
Denotes if the buffer is readable upto the given width based on the current offset.
Increases offset by n.
Consumes n bytes in the buffer and returns them in a new Array.
Consumes n bytes in the buffer and returns them in a new Array.
An Array[Byte] containing bytes from offset to offset+n
Returns the bytes from start to start+length into a string using the given java.nio.charset.Charset.
Reads a MySQL data field.
Reads a MySQL data field. A variable-length numeric value. Depending on the first byte, reads a different width from the buffer. For more info, refer to MySQL Client/Server protocol documentation.
a numeric value representing the number of bytes expected to follow.
Reads a length encoded string according to the MySQL Client/Server protocol.
Reads a length encoded string according to the MySQL Client/Server protocol. Uses Charset.defaultCharset by default to decode strings. For more details refer to MySQL documentation.
a MySQL length coded String starting at offset.
Reads a null-terminated string where null is denoted by '\0'.
Reads a null-terminated string where null is denoted by '\0'. Uses Charset.defaultCharset by default to decode strings.
a null-terminated String starting at offset.
Consumes the rest of the buffer and returns it in a new Array[Byte].
Consumes the rest of the buffer and returns it in a new Array[Byte].
Array[Byte] containing the rest of the buffer.