summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table3.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-01-21 13:39:51 +0800
committerPeng Wu <alexepico@gmail.com>2016-01-21 13:39:51 +0800
commit229fc2d9928943d21699eb17bb8886be4b1c523c (patch)
treefe6a6939ac3a5a1f0e85e12bd8371be3821a77e8 /src/storage/phrase_large_table3.cpp
parenta7526ca001e88457c290547bd42315bd4bb876be (diff)
downloadlibpinyin-229fc2d9928943d21699eb17bb8886be4b1c523c.tar.gz
libpinyin-229fc2d9928943d21699eb17bb8886be4b1c523c.tar.xz
libpinyin-229fc2d9928943d21699eb17bb8886be4b1c523c.zip
update class PhraseTableEntry
Diffstat (limited to 'src/storage/phrase_large_table3.cpp')
-rw-r--r--src/storage/phrase_large_table3.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/storage/phrase_large_table3.cpp b/src/storage/phrase_large_table3.cpp
index 07c5e70..a007bf9 100644
--- a/src/storage/phrase_large_table3.cpp
+++ b/src/storage/phrase_large_table3.cpp
@@ -35,7 +35,15 @@ protected:
private:
/* Disallow used outside. */
- PhraseTableEntry() {}
+ PhraseTableEntry() {
+ m_chunk.set_size(sizeof(table_entry_header_t));
+ memset(m_chunk.begin(), 0, m_chunk.size());
+ }
+
+protected:
+ table_entry_header_t get_header();
+
+ void set_header(table_entry_header_t header);
public:
/* search method */