C++ (Qt)... QDataStream in;... float qfloat; inline float readSingle() { in >> qfloat; return qfloat; } qint32 qint; inline int readInt32() { in >> qint; return qint; }