Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1213)

Unified Diff: third_party/brotli/common/dictionary.h

Issue 2537133002: Update brotli to v1.0.0-snapshot. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/brotli/common/dictionary.h
diff --git a/third_party/brotli/common/dictionary.h b/third_party/brotli/common/dictionary.h
new file mode 100644
index 0000000000000000000000000000000000000000..4a707077cff7d9278ad32939911c6fdad3edccaa
--- /dev/null
+++ b/third_party/brotli/common/dictionary.h
@@ -0,0 +1,30 @@
+/* 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_ */

Powered by Google App Engine
This is Rietveld 408576698