Lines Matching defs:data
51 PyObject *data;
56 data = _PyObject_CallMethod(self, attr, "n", buffer->len);
57 if (data == NULL)
60 if (!PyBytes_Check(data)) {
61 Py_DECREF(data);
66 len = PyBytes_GET_SIZE(data);
69 "read() returned too much data: "
72 Py_DECREF(data);
75 memcpy(buffer->buf, PyBytes_AS_STRING(data), len);
77 Py_DECREF(data);
137 "returns all data until EOF.\n"
149 "mode and no data is available at the moment.\n");
177 "underlying raw stream cannot accept more data at the moment.\n");
991 buffer if we already have some data to return */
1513 PyObject *res = NULL, *data = NULL, *tmp = NULL, *chunks = NULL, *readall;
1518 data = PyBytes_FromStringAndSize(
1520 if (data == NULL)
1549 PyBytes_Concat(&data, tmp);
1551 res = data;
1561 if (data) {
1562 if (PyList_Append(chunks, data) < 0)
1564 Py_CLEAR(data);
1568 data = PyObject_CallMethodNoArgs(self->raw, &_Py_ID(read));
1569 if (data == NULL)
1571 if (data != Py_None && !PyBytes_Check(data)) {
1575 if (data == Py_None || PyBytes_GET_SIZE(data) == 0) {
1577 res = data;
1586 current_size += PyBytes_GET_SIZE(data);
1588 self->abs_pos += PyBytes_GET_SIZE(data);
1593 Py_XDECREF(data);
1608 /* Fast path: the data to read is fully buffered. */
1927 /* Fast path: the data to write can be fully buffered. */