Searched refs:bf_getbuffer (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython3/Objects/ |
D | abstract.c | 282 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()
|
D | typeobject.c | 5043 COPYBUF(bf_getbuffer); in inherit_slots()
|
/external/python/cpython2/Python/ |
D | getargs.c | 1302 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/ |
D | abstract.h | 537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
|
D | object.h | 300 getbufferproc bf_getbuffer; member
|
/external/python/cpython3/Include/ |
D | abstract.h | 513 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
|
D | object.h | 314 getbufferproc bf_getbuffer; member
|
/external/python/cpython2/Objects/ |
D | bytearrayobject.c | 134 if (buffer == NULL || buffer->bf_getbuffer == NULL) in _getbuffer() 142 if (buffer->bf_getbuffer(obj, view, PyBUF_SIMPLE) < 0) in _getbuffer()
|
D | abstract.c | 368 return (*(obj->ob_type->tp_as_buffer->bf_getbuffer))(obj, view, flags); in PyObject_GetBuffer()
|
D | typeobject.c | 4035 COPYBUF(bf_getbuffer);
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 1287 .. c:member:: getbufferproc PyBufferProcs.bf_getbuffer
|