09-12-2014 10:21 AM
I usually will take the bytes off one at a time until you spot your sync bytes, then read the data out of the buffer in blocks.
Always check the sync bytes are at the end of the block, if not, switch back to one byte at a time until you sync again.