Searched refs:view_dest (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 565 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 567 PyBuffer_Release(&view_dest); in PyObject_CopyData() 571 if (view_dest.len < view_src.len) { in PyObject_CopyData() 574 PyBuffer_Release(&view_dest); in PyObject_CopyData() 579 if ((PyBuffer_IsContiguous(&view_dest, 'C') && in PyObject_CopyData() 581 (PyBuffer_IsContiguous(&view_dest, 'F') && in PyObject_CopyData() 584 memcpy(view_dest.buf, view_src.buf, view_src.len); in PyObject_CopyData() 585 PyBuffer_Release(&view_dest); in PyObject_CopyData() 596 PyBuffer_Release(&view_dest); in PyObject_CopyData() [all …]
|
/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 …]
|