Lines Matching defs:data

149             PyErr_SetString(PyExc_OSError, "Invalid data stream");
175 compress(BZ2Compressor *c, char *data, size_t len, int action)
183 c->bzs.next_in = data;
196 /* In regular compression mode, stop when input data is exhausted. */
213 /* In flushing mode, stop when all buffered data has been flushed. */
240 data: Py_buffer
243 Provide data to the compressor object.
245 Returns a chunk of compressed data if possible, or b'' otherwise.
247 When you have finished providing data to the compressor, call the
252 _bz2_BZ2Compressor_compress_impl(BZ2Compressor *self, Py_buffer *data)
261 result = compress(self, data->buf, data->len, BZ_RUN);
271 Returns the compressed data left in internal buffers.
350 "Create a compressor object for compressing data incrementally.\n"
431 /* Decompress data of length d->bzs_avail_in_real in d->bzs.next_in. The output
493 decompress(BZ2Decompressor *d, char *data, size_t len, Py_ssize_t max_length)
534 memcpy((void*)(bzs->next_in + d->bzs_avail_in_real), data, len);
539 bzs->next_in = data;
605 data: Py_buffer
608 Decompress *data*, returning uncompressed data as bytes.
611 decompressed data. If this limit is reached and further output can be
613 call to *decompress()* may provide *data* as b'' to obtain more of the output.
615 If all of the input data was decompressed and returned (either because this
619 Attempting to decompress data after the end of stream is reached raises an
620 EOFError. Any data found after the end of the stream is ignored and saved in
625 _bz2_BZ2Decompressor_decompress_impl(BZ2Decompressor *self, Py_buffer *data,
635 result = decompress(self, data->buf, data->len, max_length);
699 "Create a decompressor object for decompressing data incrementally.\n"
739 "True if more input is needed before more decompressed data can be produced.");