Searched refs:PyObject_GetBuffer (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython2/Objects/ |
D | memoryobject.c | 38 res = PyObject_GetBuffer(self->view.obj, view, flags); in memory_getbuf() 85 if (PyObject_GetBuffer(base, &view, PyBUF_FULL_RO) < 0) in PyMemoryView_FromObject() 266 if (PyObject_GetBuffer(obj, view, flags) != 0) { in PyMemoryView_GetContiguous() 411 if (PyObject_GetBuffer((PyObject *)self, &view, PyBUF_SIMPLE) < 0) in memory_tobytes() 601 if (PyObject_GetBuffer(view->obj, &newview, newflags) == -1) in memory_subscript() 680 if (PyObject_GetBuffer(value, &srcview, PyBUF_CONTIG_RO) == -1) { in memory_ass_sub() 726 if (PyObject_GetBuffer(v, &vv, PyBUF_CONTIG_RO) == -1) { in memory_richcompare() 730 if (PyObject_GetBuffer(w, &ww, PyBUF_CONTIG_RO) == -1) { in memory_richcompare()
|
D | abstract.c | 360 PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags) in PyObject_GetBuffer() function 600 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 601 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
D | bytearrayobject.c | 855 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init()
|
/external/python/cpython2/Modules/ |
D | operator.c | 330 if (PyObject_GetBuffer(a, &view_a, PyBUF_SIMPLE) == -1) { in compare_digest() 340 if (PyObject_GetBuffer(b, &view_b, PyBUF_SIMPLE) == -1) { in compare_digest()
|
D | _ssl.c | 2895 if (!PyUnicode_Check(cadata) && PyObject_GetBuffer(cadata, &buf, PyBUF_SIMPLE) == 0) { in load_verify_locations()
|
/external/python/cpython2/Include/ |
D | abstract.h | 542 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
|
/external/python/cpython2/Modules/_io/ |
D | bytesio.c | 569 if (PyObject_GetBuffer(obj, &buf, PyBUF_CONTIG_RO) < 0) in bytesio_write()
|
/external/python/cpython2/Doc/c-api/ |
D | buffer.rst | 149 .. c:function:: int PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1123 ``PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags)``, which 1132 .. XXX PyObject_GetBuffer not documented in c-api 1134 The *flags* argument to :c:func:`PyObject_GetBuffer` specifies 3003 adds :c:func:`PyObject_GetBuffer` and :c:func:`PyBuffer_Release`,
|
/external/python/cpython2/Modules/_ctypes/ |
D | _ctypes.c | 1145 if (PyObject_GetBuffer(value, &view, PyBUF_SIMPLE) < 0) in CharArray_set_raw()
|
/external/python/cpython2/Misc/ |
D | NEWS | 6927 ``PyObject_GetBuffer()`` fails. Patch by Florent Xicluna.
|