Home | History | Annotate | Download | only in stringlib

Lines Matching full:buffers

18     Py_buffer *buffers = NULL;
43 buffers = PyMem_NEW(Py_buffer, seqlen);
44 if (buffers == NULL) {
51 buffers = static_buffers;
64 buffers[i].obj = item;
65 buffers[i].buf = PyBytes_AS_STRING(item);
66 buffers[i].len = PyBytes_GET_SIZE(item);
68 else if (PyObject_GetBuffer(item, &buffers[i], PyBUF_SIMPLE) != 0) {
76 itemlen = buffers[i].len;
108 Py_ssize_t n = buffers[i].len;
109 char *q = buffers[i].buf;
122 n = buffers[i].len;
123 q = buffers[i].buf;
134 PyBuffer_Release(&buffers[i]);
135 if (buffers != static_buffers)
136 PyMem_FREE(buffers);