Showing posts with label byte-stuffing. Show all posts
Showing posts with label byte-stuffing. Show all posts

Saturday, 23 November 2019

The following data fragment occurs in the middle of a data

Q: The following data fragment occurs in the middle of a data stream for which the byte-stuffing algorithm described in the text is used: A B ESC C ESC FLAG FLAG D.
What is the output after stuffing?
 
Solution:
 
 After stuffing we get: A B ESC ESC C ESC ESC ESC FLAG ESC FLAG D.