Access the underlying array.
Access the underlying array. Note, this is not always a safe operation because the the buffer could contain a composition of arrays, in which case this will throw an exception.
Current 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 a Netty ChannelBuffer representing the underlying array.
Returns a Netty ChannelBuffer representing the underlying array. The ChannelBuffer is guaranteed ByteOrder.LITTLE_ENDIAN.
Buffer capacity.
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 set of bytes according to the MySQL Client/Server protocol.
Reads a length encoded set of bytes according to the MySQL Client/Server protocol. This is indentical to a length coded string except the bytes are returned raw.
an Array[Byte] containing the length coded set of bytes starting at offset.
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 array where null is denoted by '\0'.
Reads a null-terminated array where null is denoted by '\0'.
a null-terminated 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.
Returns the bytes from start to start+length into a string using the given java.
Returns the bytes from start to start+length into a string using the given java.nio.charset.Charset.