MoveRelativeFromField

Description:

This method takes the value in the "Field that contains offset" parameter and starting from that field, moves the pointer that many bytes plus the number of bytes in the "Additional Offset" parameter. A positive value in "Offset" moves the pointer forward, while a negative value moves back. An error will be triggered if the result points outside the frame. This method is useful for ensuring that decoding begins again at the proper location in case bad data prior in the frame causes trouble in a REPEAT loop or similar construction.

Parameters:

[Required]

Field

"Field that contains offset"


[Optional]

Int

"Additional Offset In Bytes"

(Default value: 0)

Example:

FIELD file_name START_BIT (MoveRelativeFromField fname_offset) (FromField Bytes name_size) (StringOfASCII) "File Name"