Device Monitoring Studio - TODO
Docs

onread Attribute

Syntax:

onread(expr)

Allows you to change the way this field is read by the Device Monitoring Studio. You may specify expression to be evaluated each time Structure Viewer accesses the field's value.

Take the following notes into consideration:

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];
};