diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:39:51 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-07 15:39:51 +0000 |
commit | 25ff7222c94a48b16ce76f161b6e2ae6efc54c5a (patch) | |
tree | b527f4775318d44b7011176d65e05253dba4fcab /file_index.h | |
parent | Adding upstream version 1.2. (diff) | |
download | plzip-25ff7222c94a48b16ce76f161b6e2ae6efc54c5a.tar.xz plzip-25ff7222c94a48b16ce76f161b6e2ae6efc54c5a.zip |
Adding upstream version 1.3~pre1.upstream/1.3_pre1
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'file_index.h')
-rw-r--r-- | file_index.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/file_index.h b/file_index.h index 2b1f4b5..bbc12c2 100644 --- a/file_index.h +++ b/file_index.h @@ -41,10 +41,11 @@ class File_index struct Member { Block dblock, mblock; // data block, member block + unsigned dictionary_size; Member( const long long dp, const long long ds, - const long long mp, const long long ms ) - : dblock( dp, ds ), mblock( mp, ms ) {} + const long long mp, const long long ms, const unsigned dict_size ) + : dblock( dp, ds ), mblock( mp, ms ), dictionary_size( dict_size ) {} }; std::vector< Member > member_vector; @@ -74,4 +75,6 @@ public: { return member_vector[i].dblock; } const Block & mblock( const long i ) const { return member_vector[i].mblock; } + unsigned dictionary_size( const long i ) const + { return member_vector[i].dictionary_size; } }; |