Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2015-07-01 19:59:42 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:41 +0300
commit17ddd980d8d7240d2333deed8d27ffe804aa25bb (patch)
tree36464ae20bd5e9d5d273d7ebf7ef9b054a922186 /coding/bit_streams.hpp
parentd05142ff1cd106839d1c592743d299af2408208d (diff)
[omim] [coding] An implementation of (not very) succinct trie.
Diffstat (limited to 'coding/bit_streams.hpp')
-rw-r--r--coding/bit_streams.hpp4
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>