Skip to content

Consistent Overhead Byte Stuffing (COBS) is an algorithm for encoding data bytes that results in efficient, reliable, unambiguous packet framing regardless of packet content.

License

Notifications You must be signed in to change notification settings

rockthethird/Consistent-Overhead-Byte-Stuffing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Consistent Overhead Byte Stuffing in C#

[Consistent Overhead Byte Stuffing](http://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing) (COBS) is an algorithm for encoding data bytes that results in efficient, reliable, unambiguous packet framing regardless of packet content, thus making it easy for receiving applications to recover from malformed packets. It employs a particular byte value, typically zero, to serve as a packet delimiter (a special value that indicates the boundary between packets) [**...**](http://en.wikipedia.org/wiki/ConsisteConsistent_Overhead_Byte_Stuffing)

Thanks to jacquesf for providing a starting point for my library. Please note that I had to make subtle modifications to his encoding method to produce the expected results found in the Wikipedia article. Please let me know if you find believe there are errors in my implementation.

About

Consistent Overhead Byte Stuffing (COBS) is an algorithm for encoding data bytes that results in efficient, reliable, unambiguous packet framing regardless of packet content.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages