Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dabstract.c282 pb->bf_getbuffer == NULL) in PyObject_CheckReadBuffer()
284 if ((*pb->bf_getbuffer)(obj, &view, PyBUF_SIMPLE) == -1) { in PyObject_CheckReadBuffer()
338 pb->bf_getbuffer == NULL || in PyObject_AsWriteBuffer()
339 ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITABLE) != 0)) { in PyObject_AsWriteBuffer()
358 if (pb == NULL || pb->bf_getbuffer == NULL) { in PyObject_GetBuffer()
364 return (*pb->bf_getbuffer)(obj, view, flags); in PyObject_GetBuffer()
Dtypeobject.c5043 COPYBUF(bf_getbuffer); in inherit_slots()
/external/python/cpython2/Python/
Dgetargs.c1302 if (pb && pb->bf_getbuffer && *format == '*') { in convertsimple()
1306 if (pb->bf_getbuffer(arg, (Py_buffer*)p, PyBUF_WRITABLE) < 0) { in convertsimple()
1422 if (pb->bf_getbuffer) { in getbuffer()
1423 if (pb->bf_getbuffer(arg, view, 0) < 0) { in getbuffer()
/external/python/cpython2/Include/
Dabstract.h537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
Dobject.h300 getbufferproc bf_getbuffer; member
/external/python/cpython3/Include/
Dabstract.h513 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
Dobject.h314 getbufferproc bf_getbuffer; member
/external/python/cpython2/Objects/
Dbytearrayobject.c134 if (buffer == NULL || buffer->bf_getbuffer == NULL) in _getbuffer()
142 if (buffer->bf_getbuffer(obj, view, PyBUF_SIMPLE) < 0) in _getbuffer()
Dabstract.c368 return (*(obj->ob_type->tp_as_buffer->bf_getbuffer))(obj, view, flags); in PyObject_GetBuffer()
Dtypeobject.c4035 COPYBUF(bf_getbuffer);
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst1287 .. c:member:: getbufferproc PyBufferProcs.bf_getbuffer