mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Some checks are pending
Tests / Change detection (push) Waiting to run
Tests / Docs (push) Blocked by required conditions
Tests / (push) Blocked by required conditions
Tests / Windows MSI (push) Blocked by required conditions
Tests / Check if the ABI has changed (push) Blocked by required conditions
Tests / Check if Autoconf files are up to date (push) Blocked by required conditions
Tests / Check if generated files are up to date (push) Blocked by required conditions
Tests / Ubuntu SSL tests with OpenSSL (push) Blocked by required conditions
Tests / WASI (push) Blocked by required conditions
Tests / Hypothesis tests on Ubuntu (push) Blocked by required conditions
Tests / Address sanitizer (push) Blocked by required conditions
Tests / Sanitizers (push) Blocked by required conditions
Tests / Cross build Linux (push) Blocked by required conditions
Tests / CIFuzz (push) Blocked by required conditions
Tests / All required checks pass (push) Blocked by required conditions
Lint / lint (push) Waiting to run
GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999)
(cherry picked from commit b6d3242244)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
29 lines
721 B
C
29 lines
721 B
C
/* Low level interface to the Zstandard algorithm & the zstd library. */
|
|
|
|
#ifndef ZSTD_DICT_H
|
|
#define ZSTD_DICT_H
|
|
|
|
#include <zstd.h> // ZSTD_DDict
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
|
|
/* Reusable compress/decompress dictionary, they are created once and
|
|
can be shared by multiple threads concurrently, since its usage is
|
|
read-only.
|
|
c_dicts is a dict, int(compressionLevel):PyCapsule(ZSTD_CDict*) */
|
|
ZSTD_DDict *d_dict;
|
|
PyObject *c_dicts;
|
|
|
|
/* Dictionary content. */
|
|
char *dict_buffer;
|
|
Py_ssize_t dict_len;
|
|
|
|
/* Dictionary id */
|
|
uint32_t dict_id;
|
|
|
|
/* Lock to protect the digested dictionaries */
|
|
PyMutex lock;
|
|
} ZstdDict;
|
|
|
|
#endif // !ZSTD_DICT_H
|