source: code/trunk/vendor/github.com/andybalholm/brotli/encoder_dict.go@ 145

Last change on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago

Updated the Makefile and vendored depedencies

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 629 bytes
Line 
1package brotli
2
3/* Dictionary data (words and transforms) for 1 possible context */
4type encoderDictionary struct {
5 words *dictionary
6 cutoffTransformsCount uint32
7 cutoffTransforms uint64
8 hash_table []uint16
9 buckets []uint16
10 dict_words []dictWord
11}
12
13func initEncoderDictionary(dict *encoderDictionary) {
14 dict.words = getDictionary()
15
16 dict.hash_table = kStaticDictionaryHash[:]
17 dict.buckets = kStaticDictionaryBuckets[:]
18 dict.dict_words = kStaticDictionaryWords[:]
19
20 dict.cutoffTransformsCount = kCutoffTransformsCount
21 dict.cutoffTransforms = kCutoffTransforms
22}
Note: See TracBrowser for help on using the repository browser.