#ifndef RFBIO_H
#define RFBIO_H

#include <QIODevice>


class RFBIo
{
public:
    RFBIo( QIODevice *device );

    quint8 readByte( );
    void writeByte( quint8 value );

    quint32 readInt(  );
    void writeInt( quint32 value );

    quint32 readBytes( char *buffer, quint32 max );
    quint32 writeBytes( const char *buffer, quint32 max );

private:
    QIODevice *m_device;
};

#endif // RFBIO_H

