noe / encoding

Header-only C++11 library to encode pieces of data with tight control over their bit-level representation.
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Encapsulate use of boost::dynamic_bitset #4

Closed noe closed 5 years ago

noe commented 11 years ago

Have boost::dynamic_bitset hidden, do not use it directly. Instead, identify the used functionality and create a new class that exposes corresponding methods, using boost::dynamic_bitset under the hoods.

The aim of this is a) to reduce the coupling with boost::dynamic_bitset, b) identify potential bugs due to misuse of boost::bitset (e.g. block-by-block append), c) study the actual needs in terms of bit manipulation so that we can find a proper replacement