Lines Matching full:buffers
18 Py_buffer *buffers = NULL; in STRINGLIB() local
46 buffers = PyMem_NEW(Py_buffer, seqlen); in STRINGLIB()
47 if (buffers == NULL) { in STRINGLIB()
54 buffers = static_buffers; in STRINGLIB()
67 buffers[i].obj = item; in STRINGLIB()
68 buffers[i].buf = PyBytes_AS_STRING(item); in STRINGLIB()
69 buffers[i].len = PyBytes_GET_SIZE(item); in STRINGLIB()
72 if (PyObject_GetBuffer(item, &buffers[i], PyBUF_SIMPLE) != 0) { in STRINGLIB()
88 itemlen = buffers[i].len; in STRINGLIB()
126 Py_ssize_t n = buffers[i].len; in STRINGLIB()
127 char *q = buffers[i].buf; in STRINGLIB()
140 n = buffers[i].len; in STRINGLIB()
141 q = buffers[i].buf; in STRINGLIB()
156 PyBuffer_Release(&buffers[i]); in STRINGLIB()
157 if (buffers != static_buffers) in STRINGLIB()
158 PyMem_Free(buffers); in STRINGLIB()