Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

$shift_by Directive

Syntax:

$shift_by(integer-expression);

This directive updates the current_offset. It may be used to have look ahead in a structure. integer-expression is evaluated at run-time and must be an integer value, which is added to current_offset upon directive execution.

struct A
{
    int skip_bytes;
    $shift_by(skip_bytes);
    int next_field;
};