comparison contrib/python-zstandard/c-ext/decompressoriterator.c @ 42070:675775c33ab6

zstandard: vendor python-zstandard 0.11 The upstream source distribution from PyPI was extracted. Unwanted files were removed. The clang-format ignore list was updated to reflect the new source of files. The project contains a vendored copy of zstandard 1.3.8. The old version was 1.3.6. This should result in some minor performance wins. test-check-py3-compat.t was updated to reflect now-passing tests on Python 3.8. Some HTTP tests were updated to reflect new zstd compression output. # no-check-commit because 3rd party code has different style guidelines Differential Revision: https://phab.mercurial-scm.org/D6199
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 04 Apr 2019 17:34:43 -0700
parents b1fb341d8a61
children e92ca942ddca
comparison
equal deleted inserted replaced
42069:668eff08387f 42070:675775c33ab6
55 self->output.dst = PyBytes_AsString(chunk); 55 self->output.dst = PyBytes_AsString(chunk);
56 self->output.size = self->outSize; 56 self->output.size = self->outSize;
57 self->output.pos = 0; 57 self->output.pos = 0;
58 58
59 Py_BEGIN_ALLOW_THREADS 59 Py_BEGIN_ALLOW_THREADS
60 zresult = ZSTD_decompress_generic(self->decompressor->dctx, &self->output, &self->input); 60 zresult = ZSTD_decompressStream(self->decompressor->dctx, &self->output, &self->input);
61 Py_END_ALLOW_THREADS 61 Py_END_ALLOW_THREADS
62 62
63 /* We're done with the pointer. Nullify to prevent anyone from getting a 63 /* We're done with the pointer. Nullify to prevent anyone from getting a
64 handle on a Python object. */ 64 handle on a Python object. */
65 self->output.dst = NULL; 65 self->output.dst = NULL;