Home
last modified time | relevance | path

Searched refs:PyObject_GetBuffer (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython2/Objects/
Dmemoryobject.c38 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()
Dabstract.c360 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()
Dbytearrayobject.c855 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init()
/external/python/cpython2/Modules/
Doperator.c330 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.c2895 if (!PyUnicode_Check(cadata) && PyObject_GetBuffer(cadata, &buf, PyBUF_SIMPLE) == 0) { in load_verify_locations()
/external/python/cpython2/Include/
Dabstract.h542 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
/external/python/cpython2/Modules/_io/
Dbytesio.c569 if (PyObject_GetBuffer(obj, &buf, PyBUF_CONTIG_RO) < 0) in bytesio_write()
/external/python/cpython2/Doc/c-api/
Dbuffer.rst149 .. c:function:: int PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags)
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1123 ``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.c1145 if (PyObject_GetBuffer(value, &view, PyBUF_SIMPLE) < 0) in CharArray_set_raw()
/external/python/cpython2/Misc/
DNEWS6927 ``PyObject_GetBuffer()`` fails. Patch by Florent Xicluna.