Structure-based synchronization
This optional section in the Structure Definition Document specifies the structure or structures that are searched in the binary data stream after a detection problem. The conditions that are specified for these structures detect a valid synchronization point.
The algorithm iterates byte-by-byte through the binary data stream and evaluates all conditions. If any conditions are met, a new synchronization point is detected, and normal processing is resumed.
Group conditions, which access only variables, are not evaluated. After a detection problem, all variables are reset to their initial values.
Example: The condition of the header structure is evaluated for every byte in the binary data stream until the condition is met.
<sync>
<structure name="header"/>
</sync>