Skip to content

ranaaditya/stufbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stufbit

forthebadge forthebadge forthebadge

bit stuffing algorithm implementation !

Usage

#include <iostream>
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;
}