Closed pulkomandy closed 10 months ago
In the current development version, you can do something like this:
local string s = ReadString();
char string[ StringLengthBytes(s) + 1 ];
Or more condensed:
char string[ StringLengthBytes(ReadString()) + 1 ];
Hello,
I am trying to make sense of a file where part of the data is null-terminated strings using rehex binary templates. I looked at examples from 010 editor since I saw the format is similar. It seems in rehex editor, a null terminated string can be done like this:
and the parser will auto detect the NULL terminator and size the array.
However, in rehex that doesn't work.
I had to use a struct like this instead:
Is there a way to do this that I have missed?