Lines Matching defs:buffer

139     /* Initial size of the write buffer of Pickler. */
643 PyObject *output_buffer; /* Write into a local bytearray buffer before
682 Py_buffer buffer;
1048 * file and reuse the pickler buffer for the next frame so as
1070 char *buffer;
1083 /* Make place in buffer for the pickle chunk */
1092 buffer = PyBytes_AS_STRING(self->output_buffer);
1099 buffer[frame_start + i] = 0xFE;
1106 buffer[self->output_len + i] = s[i];
1110 memcpy(buffer + self->output_len, s, data_len);
1221 if (self->buffer.buf != NULL)
1222 PyBuffer_Release(&self->buffer);
1223 if (PyObject_GetBuffer(input, &self->buffer, PyBUF_CONTIG_RO) < 0)
1225 self->input_buffer = self->buffer.buf;
1226 self->input_len = self->buffer.len;
1266 buffer.
1269 bytes from the input stream/buffer.
1271 Update the unpickler's input buffer with the newly-read data. Returns -1 on
1348 /* Extend the buffer to satisfy desired size */
1363 * more data into the input buffer.
1372 /* Read from available buffer data, if any */
1381 /* Entire read was satisfied from buffer */
1397 * and copy into destination buffer (bpo-39681) */
1423 /* Call readinto() into user buffer */
1451 input buffer directly. This method deals correctly with reading from input
1452 streams, which the input buffer doesn't deal with.
1485 /* Read a line from the input stream/buffer. If we run off the end of the input
1626 memset(&self->buffer, 0, sizeof(Py_buffer));
2312 /* Bypass the in-memory buffer to directly stream large data
2315 /* Dump the output buffer to the file. */
2321 output buffer. */
2337 /* Reinitialize the buffer for subsequent calls to _Pickler_Write. */
2532 "pointing to a non-contiguous buffer");
4720 If *buffer_callback* is None (the default), buffer views are
4724 of times with a buffer view. If the callback returns a false value
4725 (such as None), the given buffer is out-of-band; otherwise the
4726 buffer is serialized in-band, i.e. inside the pickle stream.
7159 if (self->buffer.buf != NULL) {
7160 PyBuffer_Release(&self->buffer);
7161 self->buffer.buf = NULL;
7196 if (self->buffer.buf != NULL) {
7197 PyBuffer_Release(&self->buffer);
7198 self->buffer.buf = NULL;
7669 If *buffer_callback* is None (the default), buffer views are serialized
7734 If *buffer_callback* is None (the default), buffer views are serialized