Home
last modified time | relevance | path

Searched refs:unused_data (Results 1 – 16 of 16) sorted by relevance

/third_party/python/Modules/
D_bz2module.c108 PyObject *unused_data; member
553 Py_XSETREF(d->unused_data, in decompress()
555 if (d->unused_data == NULL) in decompress()
661 Py_XSETREF(self->unused_data, PyBytes_FromStringAndSize(NULL, 0)); in _bz2_BZ2Decompressor___init___impl()
662 if (self->unused_data == NULL) in _bz2_BZ2Decompressor___init___impl()
672 Py_CLEAR(self->unused_data); in _bz2_BZ2Decompressor___init___impl()
710 Py_CLEAR(self->unused_data); in BZ2Decompressor_dealloc()
744 {"unused_data", T_OBJECT_EX, offsetof(BZ2Decompressor, unused_data),
Dzlibmodule.c209 PyObject *unused_data; member
263 self->unused_data = PyBytes_FromStringAndSize("", 0); in newcompobject()
264 if (self->unused_data == NULL) { in newcompobject()
710 Py_XDECREF(self->unused_data); in Dealloc()
813 Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data); in save_unconsumed_input()
826 PyBytes_AS_STRING(self->unused_data), old_size); in save_unconsumed_input()
829 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
1093 Py_INCREF(self->unused_data); in zlib_Compress_copy_impl()
1094 Py_XSETREF(retval->unused_data, self->unused_data); in zlib_Compress_copy_impl()
1181 Py_INCREF(self->unused_data); in zlib_Decompress_copy_impl()
[all …]
D_lzmamodule.c120 PyObject *unused_data; member
1047 Py_XSETREF(d->unused_data, in decompress()
1049 if (d->unused_data == NULL) { in decompress()
1244 Py_XSETREF(self->unused_data, PyBytes_FromStringAndSize(NULL, 0)); in _lzma_LZMADecompressor___init___impl()
1245 if (self->unused_data == NULL) { in _lzma_LZMADecompressor___init___impl()
1286 Py_CLEAR(self->unused_data); in _lzma_LZMADecompressor___init___impl()
1299 Py_CLEAR(self->unused_data); in Decompressor_dealloc()
1339 {"unused_data", T_OBJECT_EX, offsetof(Decompressor, unused_data), READONLY,
/third_party/python/Lib/test/
Dtest_zlib.py253 self.assertIsInstance(dco.unused_data, bytes)
330 self.assertEqual(b'', dco.unused_data)
343 self.assertEqual(b'', dco.unused_data)
593 self.assertEqual(dco.unused_data, b'')
604 self.assertEqual(dco.unused_data, remainder)
759 self.assertEqual(unused, do.unused_data)
Dtest_lzma.py94 def _test_decompressor(self, lzd, data, check, unused_data=b""): argument
100 self.assertEqual(lzd.unused_data, unused_data)
143 self.assertEqual(lzd.unused_data, b"")
158 self.assertEqual(lzd.unused_data, b"")
190 self.assertEqual(lzd.unused_data, b"")
255 unused_data=extra)
335 lzma.CHECK_CRC64, unused_data=COMPRESSED_ALONE)
Dtest_bz2.py708 unused_data = b"this is unused data"
709 text = bz2d.decompress(self.DATA+unused_data)
711 self.assertEqual(bz2d.unused_data, unused_data)
770 self.assertEqual(bzd.unused_data, b"")
Dtest_tarfile.py1461 self.assertFalse(dec.unused_data, "found trailing data")
/third_party/python/Lib/
D_compression.py83 rawblock = (self._decompressor.unused_data or
Dlzma.py353 data = decomp.unused_data
Dbz2.py343 data = decomp.unused_data
Dgzip.py499 elif self._decompressor.unused_data != b"":
502 self._fp.prepend(self._decompressor.unused_data)
/third_party/cef/tests/shared/browser/
Dmain_message_loop_external_pump_linux.cc147 gpointer unused_data) { in WorkSourceDispatch() argument
/third_party/python/Doc/library/
Dbz2.rst210 stream is ignored and saved in the :attr:`~.unused_data` attribute.
222 .. attribute:: unused_data
Dlzma.rst262 stream is ignored and saved in the :attr:`~.unused_data` attribute.
277 .. attribute:: unused_data
Dzlib.rst242 .. attribute:: Decompress.unused_data
/third_party/python/Misc/
DHISTORY5694 successive calls after EOF in unused_data, instead of only saving the argument
5695 to the last call. decompressobj().flush() now correctly sets unused_data and
27456 Add an .unused_data attribute to decompressor objects. If .unused_data
27458 end of the stream of compressed data, and the contents of .unused_data are