[DiscordArchive] does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar`
[DiscordArchive] does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar`
Archived author: Rymercyble • Posted: 2022-11-08T17:59:04.082000+00:00
Original source
does string block offsets start with 1 or 0 ? i mean string ends with empty byte so string `Hangar` will take 7 bytes with first being empty so if it is at offset 1 does that mean 1st is that empty byte or `H` ?
Archived author: <o> • Posted: 2022-11-08T17:59:34.027000+00:00
Original source
all the dbcs i know of has one empty byte at the start of the string block where it points all empty strings
Archived author: <o> • Posted: 2022-11-08T18:00:31.317000+00:00
Original source
but that's not part of any standard, it's just how they typically solve it
Archived author: <o> • Posted: 2022-11-08T18:00:44.622000+00:00
Original source
don't know if dbcs without empty strings has it
Archived author: Rymercyble • Posted: 2022-11-08T18:00:54.958000+00:00
Original source
so it starts from 0 where 0 is empty byte and 1 is `H` 2 is `a` etc
Archived author: <o> • Posted: 2022-11-08T18:01:09.525000+00:00
Original source
usually yes
![[Image: image.png?ex=690c39ca&is=690ae84a&hm=648...ca605554f&]](https://cdn.discordapp.com/attachments/415944535718494208/1039600634791465030/image.png?ex=690c39ca&is=690ae84a&hm=6487ec54f9b467d6d214d5daa847e88f2939608176ba85c76cf951fca605554f&)
Archived author: Rymercyble • Posted: 2022-11-08T18:01:46.255000+00:00
Original source
just to be sure do u think these offsets are correct ?
![[Image: image.png?ex=690c39ca&is=690ae84a&hm=648...ca605554f&]](https://cdn.discordapp.com/attachments/415944535718494208/1039600634791465030/image.png?ex=690c39ca&is=690ae84a&hm=6487ec54f9b467d6d214d5daa847e88f2939608176ba85c76cf951fca605554f&)
Archived author: <o> • Posted: 2022-11-08T18:02:13.330000+00:00
Original source
looks right, but can't say if that generalizes or not
Archived author: Rymercyble • Posted: 2022-11-08T18:03:38.903000+00:00
Original source
and im writing them with leading empty byte so its `empty byte -> hangar -> empty byte -> alliance controlled -> empty byte -> docks`
Archived author: <o> • Posted: 2022-11-08T18:04:25.492000+00:00
Original source
the "leading" empty byte isn't really leading, it's the end of the first string in the block, which is almost always empty