Searched refs:view_src (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Objects/ |
D | abstract.c | 587 Py_buffer view_dest, view_src; in PyObject_CopyData() local 601 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData() 606 if (view_dest.len < view_src.len) { in PyObject_CopyData() 610 PyBuffer_Release(&view_src); in PyObject_CopyData() 615 PyBuffer_IsContiguous(&view_src, 'C')) || in PyObject_CopyData() 617 PyBuffer_IsContiguous(&view_src, 'F'))) { in PyObject_CopyData() 619 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 621 PyBuffer_Release(&view_src); in PyObject_CopyData() 628 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData() 632 PyBuffer_Release(&view_src); in PyObject_CopyData() [all …]
|
/external/python/cpython3/Objects/ |
D | abstract.c | 525 Py_buffer view_dest, view_src; in PyObject_CopyData() local 539 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData() 544 if (view_dest.len < view_src.len) { in PyObject_CopyData() 548 PyBuffer_Release(&view_src); in PyObject_CopyData() 553 PyBuffer_IsContiguous(&view_src, 'C')) || in PyObject_CopyData() 555 PyBuffer_IsContiguous(&view_src, 'F'))) { in PyObject_CopyData() 557 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 559 PyBuffer_Release(&view_src); in PyObject_CopyData() 566 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData() 570 PyBuffer_Release(&view_src); in PyObject_CopyData() [all …]
|