Hi,
The file format I'm analysing indicates the endianness of the system used to write the file using the magic number (byte order of magic number indicates the endianness of the rest of the file).
How do I ensure that all numerical values in the rest of the file are automatically decoded using the correct endianness? The format contains a lot of offsets and substructures, and I've only managed to get them working on big-endian format files so far - it would be great to be able to derive the values automatically for little endian files too.
I'm assuming I'd need to use the 'derive' functionality, however I'm new to Hexinator and not 100% certain how to go about this.
Any help would be greatly appreciated!