diff options
author | Maxim Pimenov <m@maps.me> | 2015-07-01 19:59:42 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:03:41 +0300 |
commit | 17ddd980d8d7240d2333deed8d27ffe804aa25bb (patch) | |
tree | 36464ae20bd5e9d5d273d7ebf7ef9b054a922186 /coding/bit_streams.hpp | |
parent | d05142ff1cd106839d1c592743d299af2408208d (diff) |
[omim] [coding] An implementation of (not very) succinct trie.
Diffstat (limited to 'coding/bit_streams.hpp')
-rw-r--r-- | coding/bit_streams.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coding/bit_streams.hpp b/coding/bit_streams.hpp index 07fbb3b294..46656b37af 100644 --- a/coding/bit_streams.hpp +++ b/coding/bit_streams.hpp @@ -30,7 +30,7 @@ public: LOG(LWARNING, ("Caught an exception when flushing BitWriter.")); } } - + // Returns the number of bits that have been sent to BitWriter, // including those that are in m_buf and are possibly // not flushed yet. @@ -66,6 +66,7 @@ public: } m_buf = bits; } + m_flushed = false; } private: @@ -81,6 +82,7 @@ private: TWriter & m_writer; uint8_t m_buf; uint64_t m_bitsWritten; + bool m_flushed; }; template <typename TSource> |