Timeline for Why escape and escape in byte stuffing?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 3, 2022 at 17:33 | comment | added | mirabilos |
@user2277550 you always need to escape the escape character if it occurs within the data; you can construct escaping schemes any way you want, but if you don’t do that you get ambiguity in at least one of multiple ways; the only other option is to use a different encoding scheme (something like base128 or so) that changes all characters, or to use an escape char that cannot be present in input data (like \xFF in UTF-8), but you have to check that.
|
|
Jun 29, 2022 at 17:13 | comment | added | user2277550 | Wouldn't it be enough to take a sequence ending with ESC FLAG as something where ESC is part of data and FLAG is the frame control FLAG. I guess this is the only corner case. | |
Dec 30, 2014 at 17:18 | history | answered | mirabilos | CC BY-SA 3.0 |