Lines Matching refs:data

6 "compress($self, data, /)\n"
9 "Provide data to the compressor object.\n"
11 "Returns a chunk of compressed data if possible, or b\'\' otherwise.\n"
13 "When you have finished providing data to the compressor, call the\n"
20 _lzma_LZMACompressor_compress_impl(Compressor *self, Py_buffer *data);
26 Py_buffer data = {NULL, NULL};
28 if (PyObject_GetBuffer(arg, &data, PyBUF_SIMPLE) != 0) {
31 if (!PyBuffer_IsContiguous(&data, 'C')) {
35 return_value = _lzma_LZMACompressor_compress_impl(self, &data);
38 /* Cleanup for data */
39 if (data.obj) {
40 PyBuffer_Release(&data);
52 "Returns the compressed data left in internal buffers.\n"
69 "decompress($self, /, data, max_length=-1)\n"
72 "Decompress *data*, returning uncompressed data as bytes.\n"
75 "decompressed data. If this limit is reached and further output can be\n"
77 "call to *decompress()* may provide *data* as b\'\' to obtain more of the output.\n"
79 "If all of the input data was decompressed and returned (either because this\n"
83 "Attempting to decompress data after the end of stream is reached raises an\n"
84 "EOFError. Any data found after the end of the stream is ignored and saved in\n"
91 _lzma_LZMADecompressor_decompress_impl(Decompressor *self, Py_buffer *data,
98 static const char * const _keywords[] = {"data", "max_length", NULL};
102 Py_buffer data = {NULL, NULL};
109 if (PyObject_GetBuffer(args[0], &data, PyBUF_SIMPLE) != 0) {
112 if (!PyBuffer_IsContiguous(&data, 'C')) {
113 _PyArg_BadArgument("decompress", "argument 'data'", "contiguous buffer", args[0]);
132 return_value = _lzma_LZMADecompressor_decompress_impl(self, &data, max_length);
135 /* Cleanup for data */
136 if (data.obj) {
137 PyBuffer_Release(&data);
147 "Create a decompressor object for decompressing data incrementally.\n"