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

https://github.com/ranaaditya/stufbit

bit stuffing algorithm implementation !
https://github.com/ranaaditya/stufbit

bit-stuffling bits bitstuffling computer-networking datalinklayer error-correction hdlc networking

Last synced: about 1 year ago
JSON representation

bit stuffing algorithm implementation !

Awesome Lists containing this project

README

          

# stufbit

[![forthebadge](https://forthebadge.com/images/badges/made-with-c-plus-plus.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/open-source.svg)](https://forthebadge.com)

bit stuffing algorithm implementation !

### Usage
```cpp
#include
using namespace std;
#include "stufbit.h"

int main() {
// Bit Array - Header + Payload + Trailer
// Size of Header and Trailer is predefined already, and have taken as a octet here
string bitarray = "011111100111111011010101010101010111111001111110";
BitStuffing bitsuffObj = BitStuffing(bitarray, bitarray.length());
cout << bitsuffObj.getBitStuff() << endl;
return 0;
}
```