mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 02:07:07 -06:00
update Brotli to version 1.0.6
This commit is contained in:
32
C/brotli/br_encoder_dict.c
Normal file
32
C/brotli/br_encoder_dict.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/* Copyright 2017 Google Inc. All Rights Reserved.
|
||||
|
||||
Distributed under MIT license.
|
||||
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "./enc/encoder_dict.h"
|
||||
|
||||
#include "./common//dictionary.h"
|
||||
#include "./common//transform.h"
|
||||
#include "./enc/dictionary_hash.h"
|
||||
#include "./enc/hash.h"
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void BrotliInitEncoderDictionary(BrotliEncoderDictionary* dict) {
|
||||
dict->words = BrotliGetDictionary();
|
||||
|
||||
dict->hash_table = kStaticDictionaryHash;
|
||||
dict->buckets = kStaticDictionaryBuckets;
|
||||
dict->dict_words = kStaticDictionaryWords;
|
||||
|
||||
dict->cutoffTransformsCount = kCutoffTransformsCount;
|
||||
dict->cutoffTransforms = kCutoffTransforms;
|
||||
|
||||
}
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
Reference in New Issue
Block a user