Edit

kc3-lang/brotli/common/dictionary.h

Branch :

  • Show log

    Commit

  • Author : Eugene Kliuchnikov
    Date : 2016-10-31 14:33:59
    Hash : e9b278ac
    Message : Update docs and add more java tests (#463) * doxygenize and update API documentation * fix spelling * add "fuzz" corpus for java decoder to improve coverage * use upper-case-snake names for dictionary constant definitions * use `LDFLAGS` in conventional `Makefile`

  • common/dictionary.h
  • /* Copyright 2013 Google Inc. All Rights Reserved.
    
       Distributed under MIT license.
       See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
    */
    
    /* Collection of static dictionary words. */
    
    #ifndef BROTLI_COMMON_DICTIONARY_H_
    #define BROTLI_COMMON_DICTIONARY_H_
    
    #include <brotli/port.h>
    #include <brotli/types.h>
    
    #if defined(__cplusplus) || defined(c_plusplus)
    extern "C" {
    #endif
    
    BROTLI_COMMON_API extern const uint8_t kBrotliDictionary[122784];
    BROTLI_COMMON_API extern const uint32_t kBrotliDictionaryOffsetsByLength[25];
    BROTLI_COMMON_API extern const uint8_t kBrotliDictionarySizeBitsByLength[25];
    
    #define BROTLI_MIN_DICTIONARY_WORD_LENGTH 4
    #define BROTLI_MAX_DICTIONARY_WORD_LENGTH 24
    
    #if defined(__cplusplus) || defined(c_plusplus)
    }  /* extern "C" */
    #endif
    
    #endif  /* BROTLI_COMMON_DICTIONARY_H_ */