Home
last modified time | relevance | path

Searched refs:unconsumed_tail (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Modules/
Dzlibmodule.c210 PyObject *unconsumed_tail; member
268 self->unconsumed_tail = PyBytes_FromStringAndSize("", 0); in newcompobject()
269 if (self->unconsumed_tail == NULL) { in newcompobject()
711 Py_XDECREF(self->unconsumed_tail); in Dealloc()
834 if (self->zst.avail_in > 0 || PyBytes_GET_SIZE(self->unconsumed_tail)) { in save_unconsumed_input()
843 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
1095 Py_INCREF(self->unconsumed_tail); in zlib_Compress_copy_impl()
1096 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Compress_copy_impl()
1183 Py_INCREF(self->unconsumed_tail); in zlib_Decompress_copy_impl()
1184 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Decompress_copy_impl()
[all …]
/third_party/python/Lib/test/
Dtest_zlib.py252 self.assertIsInstance(dco.unconsumed_tail, bytes)
327 self.assertEqual(b'', dco.unconsumed_tail, ########
329 len(dco.unconsumed_tail))
340 self.assertEqual(b'', dco.unconsumed_tail, ########
342 len(dco.unconsumed_tail))
373 cb = dco.unconsumed_tail
398 cb = dco.unconsumed_tail
416 self.assertEqual(b'', dco.unconsumed_tail)
439 ddata += dco.decompress(dco.unconsumed_tail)
440 self.assertEqual(dco.unconsumed_tail, b"")
[all …]
/third_party/python/Lib/
Dgzip.py497 if self._decompressor.unconsumed_tail != b"":
498 self._fp.prepend(self._decompressor.unconsumed_tail)
Dzipfile.py991 data = self._decompressor.unconsumed_tail
1004 not self._decompressor.unconsumed_tail)
/third_party/python/Doc/library/
Dzlib.rst250 .. attribute:: Decompress.unconsumed_tail
281 :attr:`unconsumed_tail`. This bytestring must be passed to a subsequent call to
283 then the whole input is decompressed, and :attr:`unconsumed_tail` is empty.
/third_party/python/Misc/
DHISTORY5696 unconsumed_tail. A bug in the handling of MemoryError when setting the
5697 unconsumed_tail attribute has also been fixed. Patch by Serhiy Storchaka.
9635 - Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail