[DiscordArchive] Hello, i'm using Qt and `QDataStream` for read and write in file ..
[DiscordArchive] Hello, i'm using Qt and `QDataStream` for read and write in file ..
Archived author: Intemporel • Posted: 2021-12-31T17:20:56.950000+00:00
Original source
Hello, i'm using Qt and `QDataStream` for read and write in file ..
When i want to write in my file, i can't write in offset `193E4` but can on `193E0` and `193E8`... someone know why ?
Archived author: Intemporel • Posted: 2021-12-31T17:24:53.206000+00:00
Original source
```qt
QDataStream in(&file);
...
qDebug() << in.device().pos();
// return position in device for debug
// when the debug return 193E4 i can't, but
// if i jump of 0x4 or -0x4 byte, i can write...
// can write if i go 0x4 byte more or less the position
in.skipRawData(0x4); // or in.skipRawData(-0x4); too
// but i want to write in 193E4 only !
in << myValue; // qint32;
...
```
Archived author: Intemporel • Posted: 2021-12-31T17:27:12.621000+00:00
Original source
cast `myValue` into an `int` doesn't work