Searched refs:view_src (Results 1 – 1 of 1) sorted by relevance
620 Py_buffer view_dest, view_src; in PyObject_CopyData() local634 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()639 if (view_dest.len < view_src.len) { in PyObject_CopyData()643 PyBuffer_Release(&view_src); in PyObject_CopyData()648 PyBuffer_IsContiguous(&view_src, 'C')) || in PyObject_CopyData()650 PyBuffer_IsContiguous(&view_src, 'F'))) { in PyObject_CopyData()652 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData()654 PyBuffer_Release(&view_src); in PyObject_CopyData()661 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData()665 PyBuffer_Release(&view_src); in PyObject_CopyData()[all …]