Forums WoW Modding Support Archives WoWModding Support Archives [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 ..

[DiscordArchive] Hello, i'm using Qt and `QDataStream` for read and write in file ..

rektbyfaith
Administrator
0
12-31-2021, 05:20 PM
#1
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 ?
rektbyfaith
12-31-2021, 05:20 PM #1

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 ?

rektbyfaith
Administrator
0
12-31-2021, 05:24 PM
#2
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;
...
```
rektbyfaith
12-31-2021, 05:24 PM #2

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;
...
```

rektbyfaith
Administrator
0
12-31-2021, 05:27 PM
#3
Archived author: Intemporel • Posted: 2021-12-31T17:27:12.621000+00:00
Original source

cast `myValue` into an `int` doesn't work
rektbyfaith
12-31-2021, 05:27 PM #3

Archived author: Intemporel • Posted: 2021-12-31T17:27:12.621000+00:00
Original source

cast `myValue` into an `int` doesn't work

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)