Mercurial > dedupe
diff FastBitDecoder.hpp @ 57:c8111de2e0bb
Add functionality to decode directly from bitstring.
Use BitArrays getPaddedChar directly.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 13 Sep 2012 23:53:35 +0200 |
| parents | f8d0ea827db3 |
| children | b9515dc35fe4 |
line wrap: on
line diff
--- a/FastBitDecoder.hpp Thu Sep 13 23:49:18 2012 +0200 +++ b/FastBitDecoder.hpp Thu Sep 13 23:53:35 2012 +0200 @@ -23,6 +23,10 @@ public: FastBitDecoder(const QMap<QString, BitArray>& encoder); + ~FastBitDecoder(); + + QString decode(const QString& bits) const; + QString decode(const BitArray& bits) const { QString combined; @@ -33,7 +37,6 @@ combined.squeeze(); return combined; } - QString decode(const QString& bits) const; };
