sync Layer
Last updated
Was this helpful?
Last updated
Was this helpful?
The <sync> layer represents synchronization bytes, usually (but not always) present at the beginning of the .
The example below implements SYNC (2 bytes) | ID (2 bytes) | SIZE (2 bytes) | PAYLOAD
framing where SYNC
must be 0xab 0xcd
bytes. Note, that read of the SyncField
will fail in case its read value is not 0xabcd
.
The <sync> layer doesn't have any extra properties in addition to ones.