I have stream of bytes and I need to form these bytes as a frame when I get particular Header. Example:
Header: ABC
Source: DFDFDFDF'ABC'IEJENFAREABCOEKRERIERE
If ABC is detected, rest of the bytes 'IE'
in a string and 'JEN'
in a string and 'FARE'
in a String and again ABC is detected, hence 'OE'
in a string... likewise my byte stream has to be processed.
Is there any efficient way to process it ?