foliojs/restructure

feat: magic byte

intech opened this issue · 1 comments

Set a magic byte with a fixed check of the value for the start of the packet and optionally for the end.

Example: https://github.com/keichi/binary-parser#common-options option assert

I think it is not good to do that, see #41

Magic end byte could be escaped by a single payload in the packet