请教一个QByteArray的问题
QDataStream sendOut(&outBlock, QIODevice::WriteOnly);
QString currentFileName = fileName.right(fileName.size() - fileName.lastIndexOf('/') - 1);
sendOut << qint64(0) << qint64(0) << currentFileName;
这里outBlock的大小是怎么算的?
[解决办法]
outBlock.length()或outBlock.size()
[解决办法]
outBlock.count()
outBlock.size()
outBlock.length()
三者其实差不多。