C++ (Qt)QDataStream strm;strm.setByteOrder(..);...int count;strm >> count;char buf[11];strm.readRawData(buf, 11);QString test(QByteArray(buf + 1, buf[0]));qDebug() << test;
C++ (Qt)QDataStream strm;QString test(QByteArray(buf + 1, buf[0]));
C++ (Qt)QDataStream strm;strm.setByteOrder(..);...int count;strm << count;char buf[11];strm.readRawData(buf, 11);QString test(QByteArray(buf + 1, buf[0]));qDebug() << test;
QTextCodec* codec = QTextCodec::codecForName("windows-1251");qDebug() << codec->toUnicode(buf) << ", " << codec->toUnicode(buf);
QDataStream stream(&file);stream.setByteOrder(QDataStream::LittleEndian);int count;stream >> count;char buf[11];stream.readRawData(buf, 11);char buf2[201];stream.readRawData(buf2, 201);QTextCodec* codec = QTextCodec::codecForName("windows-1251");file.close();QMessageBox::about(this, "title", codec->toUnicode(buf) + ", " + codec->toUnicode(buf2));