Searched refs:view_dest (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 600 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 602 PyBuffer_Release(&view_dest); in PyObject_CopyData() 606 if (view_dest.len < view_src.len) { in PyObject_CopyData() 609 PyBuffer_Release(&view_dest); in PyObject_CopyData() 614 if ((PyBuffer_IsContiguous(&view_dest, 'C') && in PyObject_CopyData() 616 (PyBuffer_IsContiguous(&view_dest, 'F') && in PyObject_CopyData() 619 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 620 PyBuffer_Release(&view_dest); in PyObject_CopyData() 631 PyBuffer_Release(&view_dest); in PyObject_CopyData() [all …]
|
/external/python/cpython3/Objects/ |
D | abstract.c | 525 Py_buffer view_dest, view_src; in PyObject_CopyData() local 538 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 540 PyBuffer_Release(&view_dest); in PyObject_CopyData() 544 if (view_dest.len < view_src.len) { in PyObject_CopyData() 547 PyBuffer_Release(&view_dest); in PyObject_CopyData() 552 if ((PyBuffer_IsContiguous(&view_dest, 'C') && in PyObject_CopyData() 554 (PyBuffer_IsContiguous(&view_dest, 'F') && in PyObject_CopyData() 557 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 558 PyBuffer_Release(&view_dest); in PyObject_CopyData() 569 PyBuffer_Release(&view_dest); in PyObject_CopyData() [all …]
|