Description:
ToTerminatingValue method scans ahead for the value specified in the "Value" parameter, and returns the number of bits between the value and the current bit. If the terminating value is not found, the size is set to the number of bytes remaining in the layer. The "Inclusive/Exclusive" parameter specifies whether to include the terminating value in the count or not. Thus (ToTerminatingValue Inclusive 0xFF) would count bytes until one was found containing 0xFF and return a count that included the 0xFF. If the pointer is not at a byte boundary when the scan starts, then the pointer is moved to the beginning of the next byte and the scan starts from there.
Parameters:
|
[Required] |
List |
"Inclusive/Exclusive" |
|
|
List values: |
Inclusive |
||
|
Exclusive |
|||
|
[Required] |
Int64 |
"Value that signifies the start of the next field or end of this |
|
Example:
FIELD s_reg (ToTerminatingValue Exclusive 0x3d) (Table s_reg) "S-register"