Searched refs:view_src (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | abstract.c | 552 Py_buffer view_dest, view_src; in PyObject_CopyData() local 566 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData() 571 if (view_dest.len < view_src.len) { in PyObject_CopyData() 575 PyBuffer_Release(&view_src); in PyObject_CopyData() 580 PyBuffer_IsContiguous(&view_src, 'C')) || in PyObject_CopyData() 582 PyBuffer_IsContiguous(&view_src, 'F'))) { in PyObject_CopyData() 584 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 586 PyBuffer_Release(&view_src); in PyObject_CopyData() 593 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData() 597 PyBuffer_Release(&view_src); in PyObject_CopyData() [all …]
|
/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 …]
|