Searched refs:bf_getbuffer (Results 1 – 17 of 17) sorted by relevance
/external/python/cpython3/Objects/ |
D | picklebufobject.c | 142 .bf_getbuffer = (getbufferproc) picklebuf_getbuf,
|
D | abstract.c | 292 return (tp_as_buffer != NULL && tp_as_buffer->bf_getbuffer != NULL); in PyObject_CheckBuffer() 306 pb->bf_getbuffer == NULL) in PyObject_CheckReadBuffer() 308 if ((*pb->bf_getbuffer)(obj, &view, PyBUF_SIMPLE) == -1) { in PyObject_CheckReadBuffer() 362 pb->bf_getbuffer == NULL || in PyObject_AsWriteBuffer() 363 ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITABLE) != 0)) { in PyObject_AsWriteBuffer() 382 if (pb == NULL || pb->bf_getbuffer == NULL) { in PyObject_GetBuffer() 388 int res = (*pb->bf_getbuffer)(obj, view, flags); in PyObject_GetBuffer()
|
D | typeslots.inc | 2 {offsetof(PyBufferProcs, bf_getbuffer), offsetof(PyTypeObject, tp_as_buffer)},
|
D | typeobject.c | 5856 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/cpython3/Include/cpython/ |
D | object.h | 181 getbufferproc bf_getbuffer; member
|
/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/pybind11/include/pybind11/detail/ |
D | class.h | 591 heap_type->as_buffer.bf_getbuffer = pybind11_getbuffer; in enable_buffer_protocol()
|
/external/python/cpython3/Doc/c-api/ |
D | type.rst | 265 * :c:member:`~PyBufferProcs.bf_getbuffer`
|
D | typeobj.rst | 320 …| :c:member:`~PyBufferProcs.bf_getbuffer` | :c:func:`getbufferproc` | … 2322 .. c:member:: getbufferproc PyBufferProcs.bf_getbuffer
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | py_buffer.cc | 471 procs.bf_getbuffer = &PyBuffer_bf_getbuffer; in __anon067d5bbf0a02()
|
/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/cffi/c/ |
D | _cffi_backend.c | 7681 if (methods & 8) obj->tp_as_buffer->bf_getbuffer = &_test_getbuf; in b__testbuff() 7682 if (methods & 16) obj->tp_as_buffer->bf_getbuffer = &_test_getbuf_ro; in b__testbuff()
|
/external/python/cpython3/Doc/data/ |
D | python3.10.abi | 2892 …<var-decl name='bf_getbuffer' type-id='type-id-122' visibility='default' filepath='./Include/cpyth…
|