Description:
This method figures out how much data has been consumed between the start of the field in the "Field that contains length" parameter and the current bit position. Then it compares the value in the "Field that contains length" parameter with the amount of data consumed and returns TRUE if there is more data to decode and FALSE if not.
Note that this method is inclusive, which means if you need to find out how much data has been consumed not including the data in the first parameter field, you will need to include the size of that field as an offset. See Size method RelativeFromField for one use of this method.
Parameters:
|
[Required] |
Field |
"Field that contains length" |
|
|
[Optional] |
Int |
"Size of Parameter Field In Bytes" |
(Default value: 0) |
Example:
FIELD consume_data (RelativeFromField length 1) IF (MoreBytesInSegment length 1) (StringOfHex 64) "Data"