And what can I do when
//dataset description
fileStream>>(int)tempInt; //length of description
fileStream.readRawData(charBuffer,tempInt);
qDebug() << "Dataset descr length: " << tempInt;
for (int i=0; i<tempInt; i++){
dataSetDescription += charBuffer[i];
}
fileStream.readRawData(charBuffer,4);
memcpy(&signalsCount, charBuffer, 4);
//dataset description
fileStream>>(int)tempInt; //length of description
fileStream.readRawData(charBuffer,tempInt);
qDebug() << "Dataset descr length: " << tempInt;
for (int i=0; i<tempInt; i++){
dataSetDescription += charBuffer[i];
}
fileStream.readRawData(charBuffer,4);
memcpy(&signalsCount, charBuffer, 4);
To copy to clipboard, switch view to plain text mode
does the same? 0D is still missed.
//dataset description
fileStream>>(int)tempInt; //length of description
fileStream.readRawData(charBuffer,tempInt+4);
qDebug() << "Dataset descr length: " << tempInt;
for (int i=0; i<tempInt; i++){
dataSetDescription += charBuffer[i];
}
memcpy(&signalsCount, charBuffer+(tempInt*sizeof(char)), 4);
//dataset description
fileStream>>(int)tempInt; //length of description
fileStream.readRawData(charBuffer,tempInt+4);
qDebug() << "Dataset descr length: " << tempInt;
for (int i=0; i<tempInt; i++){
dataSetDescription += charBuffer[i];
}
memcpy(&signalsCount, charBuffer+(tempInt*sizeof(char)), 4);
To copy to clipboard, switch view to plain text mode
Even this misses 0D byte. It's just impossible what is happening here.
Bookmarks