Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/merlin04/ocaml-cobs

Consistent Overhead Byte Stuffing (COBS) encoding and decoding in OCaml
https://github.com/merlin04/ocaml-cobs

Last synced: about 4 hours ago
JSON representation

Consistent Overhead Byte Stuffing (COBS) encoding and decoding in OCaml

Awesome Lists containing this project

README

        

# `ocaml-cobs`

This OCaml library implements a Consistent Overhead Byte Stuffing (COBS) encoder and decoder. COBS is a useful encoding for framing packets in binary streams; it transforms a sequence of bytes to not contain a given delimiter (typically `0x00`), allowing you to use that delimiter to separate packets in your stream. It has a consistently low overhead which makes it good for real-time applications.

For more information about the COBS algorithm, see [this Wikipedia article](https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing).