2 ms·
Yes, the `offset` function does this by specifying a bit-offset to branch to. For example the ICO `dir_entry`, which is a directory list of icon resources in th
by kstenerud 3y ago
Yes, the `offset` function does this by specifying a bit-offset to branch to. For example the ICO `dir_entry`, which is a directory list of icon resources in the file. https://github.com/kstenerud/dogma/blob/master/v1/examples/ico.dogma#L26 https://github.com/kstenerud/dogma/blob/master/v1/examples/i... - It's using image_offset*8 because everything in an ICO file is a byte-offset (8 bits)
It's also needed to parse Minidump. For example https://github.com/kstenerud/dogma/blob/master/v1/examples/minidump.dogma#L23 https://github.com/kstenerud/dogma/blob/master/v1/examples/m... and https://github.com/kstenerud/dogma/blob/master/v1/examples/minidump.dogma#L62 https://github.com/kstenerud/dogma/blob/master/v1/examples/m...