Byte Stuffing A byte is stuffed in the message to differentiate from the delimiter. This is also called character-oriented framing. Bit Stuffing A pattern of bits of arbitrary length is stuffed in the message to differentiate from the delimiter. This is also called bit oriented framing....
I can't tell you how many bugs I fixed involving a screw-up with the mask value and the shift operations needed in the bit-stuffing approach. When I worked in Ada using the record approach, we never had any issues with inadvertent bits being changed. ...