Syntax:
onread(expr)
Allows you to change the way this field is read by the Hex Editor Neo. You may specify expression to be evaluated each time Structure Viewer accesses the field's value.
Take the following notes into consideration:
x
and y
, if x == y
, expr(x) == expr(y)
.In expression you may refer to actual field's value using a special variable _1
:
struct A
{
// The following field stores the size of the array minus 2
[onread(_1 + 2)]
int array_size; // will be displayed as actual value + 2
char array[array_size];
};