Calculates the size required to store a length according to the MySQL protocol for length coded binary.
Wraps the arrays into a ChannelBuffer with the appropriate MySQL protocol byte order.
Wraps the arrays into a ChannelBuffer with the appropriate MySQL protocol byte order. A wrappedBuffer avoids copying the underlying arrays.
The BufferReader and BufferWriter interfaces provide methods for reading/writing primitive data types exchanged between the client/server. This includes all primitive numeric types and strings. All Buffer methods are side-effecting. That is, each call to a read* or write* method will increase the current offset.
These interfaces are useful for reading from and writing to a MySQL packet. They provide protocol specific methods and assure that buffers are read/written in little endian byte order, which conforms to the MySQL protocol.