9#ifndef BROTLI_COMMON_SHARED_DICTIONARY_H_
10#define BROTLI_COMMON_SHARED_DICTIONARY_H_
12#include <brotli/port.h>
13#include <brotli/types.h>
15#if defined(__cplusplus) || defined(c_plusplus)
19#define SHARED_BROTLI_MIN_DICTIONARY_WORD_LENGTH 4
20#define SHARED_BROTLI_MAX_DICTIONARY_WORD_LENGTH 31
21#define SHARED_BROTLI_NUM_DICTIONARY_CONTEXTS 64
22#define SHARED_BROTLI_MAX_COMPOUND_DICTS 15
96#if defined(__cplusplus) || defined(c_plusplus)
#define BROTLI_COMMON_API
Definition port.h:283
#define BROTLI_ARRAY_PARAM(name)
Definition port.h:255
BROTLI_COMMON_API void BrotliSharedDictionaryDestroyInstance(BrotliSharedDictionary *dict)
Definition shared_dictionary.c:449
BROTLI_COMMON_API BrotliSharedDictionary * BrotliSharedDictionaryCreateInstance(brotli_alloc_func alloc_func, brotli_free_func free_func, void *opaque)
Definition shared_dictionary.c:488
BROTLI_COMMON_API BROTLI_BOOL BrotliSharedDictionaryAttach(BrotliSharedDictionary *dict, BrotliSharedDictionaryType type, size_t data_size, const uint8_t data[BROTLI_ARRAY_PARAM(data_size)])
Definition shared_dictionary.c:465
BrotliSharedDictionaryType
Definition shared_dictionary.h:35
@ BROTLI_SHARED_DICTIONARY_SERIALIZED
Definition shared_dictionary.h:42
@ BROTLI_SHARED_DICTIONARY_RAW
Definition shared_dictionary.h:37
Definition shared_dictionary_internal.h:22
brotli_free_func free_func
Definition shared_dictionary_internal.h:64
brotli_alloc_func alloc_func
Definition shared_dictionary_internal.h:63
Definition poolTests.c:28
void *(* brotli_alloc_func)(void *opaque, size_t size)
Definition types.h:71
void(* brotli_free_func)(void *opaque, void *address)
Definition types.h:81
#define BROTLI_BOOL
Definition types.h:49
const void * dict
Definition zbuff.h:76