aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/dim13/cobs/README.md
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-27 17:22:56 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-27 17:22:56 +0200
commit3ee2c48a1d5599c4e6754636d1755b1e1e897301 (patch)
treeba857ebb21b0b13248192e1711af496227a2b202 /vendor/github.com/dim13/cobs/README.md
parent41acedced077f9da2c6b62a3932d661566af3ca6 (diff)
Add vendor
Diffstat (limited to 'vendor/github.com/dim13/cobs/README.md')
-rw-r--r--vendor/github.com/dim13/cobs/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/github.com/dim13/cobs/README.md b/vendor/github.com/dim13/cobs/README.md
new file mode 100644
index 0000000..ec14b9e
--- /dev/null
+++ b/vendor/github.com/dim13/cobs/README.md
@@ -0,0 +1,16 @@
+# Consistent Overhead Byte Stuffing
+
+[![Build Status](https://travis-ci.org/dim13/cobs.svg?branch=master)](https://travis-ci.org/dim13/cobs)
+[![GoDoc](https://godoc.org/github.com/dim13/cobs?status.svg)](https://godoc.org/github.com/dim13/cobs)
+
+COBS encoder breaks a packet into one or more sequences of non-zero
+bytes. The encoding routine searches through the first 254 bytes of
+the packet looking for the first occurrence of a zero byte. If no
+zero is found, then a code of 0xFF is output, followed by the 254
+non-zero bytes. If a zero is found, then the number of bytes
+examined, n, is output as the code byte, followed by the actual
+values of the (n-1) non-zero bytes up to (but not including) the zero
+byte. This process is repeated until all the bytes of the packet have
+been encoded.
+
+See also: http://www.stuartcheshire.org/papers/COBSforToN.pdf