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()
三者其实差不多。