Lines Matching refs:buffer
218 "Return a tuple (address, length) giving the current memory address and the length in items of the buffer used to hold array\'s contents.\n"
221 "the buffer length in bytes.");
389 "frombytes($self, buffer, /)\n"
398 array_array_frombytes_impl(arrayobject *self, Py_buffer *buffer);
404 Py_buffer buffer = {NULL, NULL};
406 if (PyObject_GetBuffer(arg, &buffer, PyBUF_SIMPLE) != 0) {
409 if (!PyBuffer_IsContiguous(&buffer, 'C')) {
410 _PyArg_BadArgument("frombytes", "argument", "contiguous buffer", arg);
413 return_value = array_array_frombytes_impl(self, &buffer);
416 /* Cleanup for buffer */
417 if (buffer.obj) {
418 PyBuffer_Release(&buffer);