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 !
- Host: GitHub
- URL: https://github.com/ranaaditya/stufbit
- Owner: ranaaditya
- License: mit
- Created: 2022-07-29T16:40:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-13T18:35:11.000Z (over 3 years ago)
- Last Synced: 2025-03-24T11:08:02.952Z (about 1 year ago)
- Topics: bit-stuffling, bits, bitstuffling, computer-networking, datalinklayer, error-correction, hdlc, networking
- Language: C++
- Homepage:
- Size: 155 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stufbit
[](https://forthebadge.com)
[](https://forthebadge.com)
[](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;
}
```