public read(buffer as Byte[], offset as Int, length as Int) as Int throws SQLException:
Reads bytes from the socket.