Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dpicklebufobject.c142 .bf_getbuffer = (getbufferproc) picklebuf_getbuf,
Dabstract.c292 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()
Dtypeslots.inc2 {offsetof(PyBufferProcs, bf_getbuffer), offsetof(PyTypeObject, tp_as_buffer)},
Dtypeobject.c5856 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/cpython3/Include/cpython/
Dobject.h181 getbufferproc bf_getbuffer; member
/external/python/cpython2/Include/
Dabstract.h537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
Dobject.h300 getbufferproc bf_getbuffer; member
/external/python/pybind11/include/pybind11/detail/
Dclass.h591 heap_type->as_buffer.bf_getbuffer = pybind11_getbuffer; in enable_buffer_protocol()
/external/python/cpython3/Doc/c-api/
Dtype.rst265 * :c:member:`~PyBufferProcs.bf_getbuffer`
Dtypeobj.rst320 …| :c:member:`~PyBufferProcs.bf_getbuffer` | :c:func:`getbufferproc` | …
2322 .. c:member:: getbufferproc PyBufferProcs.bf_getbuffer
/external/tensorflow/tensorflow/compiler/xla/python/
Dpy_buffer.cc471 procs.bf_getbuffer = &PyBuffer_bf_getbuffer; in __anon067d5bbf0a02()
/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/cffi/c/
D_cffi_backend.c7681 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/
Dpython3.10.abi2892 …<var-decl name='bf_getbuffer' type-id='type-id-122' visibility='default' filepath='./Include/cpyth…