Home
last modified time | relevance | path

Searched refs:tp_as_buffer (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Objects/
Dbufferobject.c37 PyBufferProcs *bp = Py_TYPE(self->b_base)->tp_as_buffer; in get_buf()
158 PyBufferProcs *pb = base->ob_type->tp_as_buffer; in PyBuffer_FromObject()
174 PyBufferProcs *pb = base->ob_type->tp_as_buffer; in PyBuffer_FromReadWriteObject()
382 PyBufferProcs *pb = other->ob_type->tp_as_buffer; in buffer_concat()
574 pb = other ? other->ob_type->tp_as_buffer : NULL; in buffer_ass_item_impl()
634 pb = other ? other->ob_type->tp_as_buffer : NULL; in buffer_ass_slice()
691 pb = value ? value->ob_type->tp_as_buffer : NULL; in buffer_ass_subscript()
Dabstract.c257 pb = obj->ob_type->tp_as_buffer; in PyObject_AsCharBuffer()
281 PyBufferProcs *pb = obj->ob_type->tp_as_buffer; in PyObject_CheckReadBuffer()
303 pb = obj->ob_type->tp_as_buffer; in PyObject_AsReadBuffer()
336 pb = obj->ob_type->tp_as_buffer; in PyObject_AsWriteBuffer()
368 return (*(obj->ob_type->tp_as_buffer->bf_getbuffer))(obj, view, flags); in PyObject_GetBuffer()
717 if (obj && Py_TYPE(obj)->tp_as_buffer && Py_TYPE(obj)->tp_as_buffer->bf_releasebuffer) in PyBuffer_Release()
718 Py_TYPE(obj)->tp_as_buffer->bf_releasebuffer(obj, view); in PyBuffer_Release()
Dtypeobject.c2371 type->tp_as_buffer = &et->as_buffer; in type_new()
3816 if (!type->tp_as_buffer && base->tp_as_buffer) {
3948 #define COPYBUF(SLOT) COPYSLOT(tp_as_buffer->SLOT)
4027 if (type->tp_as_buffer != NULL && base->tp_as_buffer != NULL) {
4029 if (basebase->tp_as_buffer == NULL)
4291 if (type->tp_as_buffer == NULL)
4292 type->tp_as_buffer = base->tp_as_buffer;
Dbytearrayobject.c132 PyBufferProcs *buffer = Py_TYPE(obj)->tp_as_buffer; in _getbuffer()
/external/python/cpython2/Doc/includes/
Dtypestruct.h30 PyBufferProcs *tp_as_buffer; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h31 PyBufferProcs *tp_as_buffer; member
/external/python/cpython2/Include/
Dcode.h87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
Dabstract.h535 (((obj)->ob_type->tp_as_buffer != NULL) && \
537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
Dobject.h353 PyBufferProcs *tp_as_buffer; member
/external/python/cpython3/Objects/
Dabstract.c286 PyBufferProcs *tp_as_buffer = Py_TYPE(obj)->tp_as_buffer; in PyObject_CheckBuffer() local
287 return (tp_as_buffer != NULL && tp_as_buffer->bf_getbuffer != NULL); in PyObject_CheckBuffer()
297 PyBufferProcs *pb = Py_TYPE(obj)->tp_as_buffer; in PyObject_CheckReadBuffer()
355 pb = Py_TYPE(obj)->tp_as_buffer; in PyObject_AsWriteBuffer()
375 PyBufferProcs *pb = Py_TYPE(obj)->tp_as_buffer; in PyObject_GetBuffer()
751 pb = Py_TYPE(obj)->tp_as_buffer; in PyBuffer_Release()
Dpicklebufobject.c217 .tp_as_buffer = &picklebuf_as_buffer,
Dtypeobject.c2618 type->tp_as_buffer = &et->as_buffer; in type_new()
2996 type->tp_as_buffer = &res->as_buffer; in PyType_FromModuleAndSpec()
5196 #define COPYBUF(SLOT) COPYSLOT(tp_as_buffer->SLOT) in inherit_slots()
5274 if (type->tp_as_buffer != NULL && base->tp_as_buffer != NULL) { in inherit_slots()
5276 if (basebase->tp_as_buffer == NULL) in inherit_slots()
5576 if (type->tp_as_buffer == NULL) in PyType_Ready()
5577 type->tp_as_buffer = base->tp_as_buffer; in PyType_Ready()
/external/python/cpython2/Python/
Dgetargs.c1294 PyBufferProcs *pb = arg->ob_type->tp_as_buffer; in convertsimple()
1346 PyBufferProcs *pb = arg->ob_type->tp_as_buffer; in convertsimple()
1393 PyBufferProcs *pb = arg->ob_type->tp_as_buffer; in convertbuffer()
1417 PyBufferProcs *pb = arg->ob_type->tp_as_buffer; in getbuffer()
Dmarshal.c449 PyBufferProcs *pb = v->ob_type->tp_as_buffer; in w_object()
/external/python/cpython3/Include/cpython/
Dobject.h223 PyBufferProcs *tp_as_buffer; member
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla.cc336 buffer_type->tp_as_buffer = PyBuffer::BufferProtocol(); in PYBIND11_MODULE()
/external/python/pybind11/include/pybind11/detail/
Dclass.h586 heap_type->ht_type.tp_as_buffer = &heap_type->as_buffer; in enable_buffer_protocol()
/external/python/cffi/c/
D_cffi_backend.c6767 PyBufferProcs *pb = x->ob_type->tp_as_buffer;
7284 assert(obj->tp_as_buffer != NULL);
7287 obj->tp_as_buffer->bf_getsegcount = &_test_segcountproc;
7290 if (methods & 1) obj->tp_as_buffer->bf_getreadbuffer = &_test_getreadbuf;
7291 if (methods & 2) obj->tp_as_buffer->bf_getwritebuffer = &_test_getwritebuf;
7292 if (methods & 4) obj->tp_as_buffer->bf_getcharbuffer = &_test_getcharbuf;
7294 if (methods & 8) obj->tp_as_buffer->bf_getbuffer = &_test_getbuf;
7295 if (methods & 16) obj->tp_as_buffer->bf_getbuffer = &_test_getbuf_ro;
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst407 .. c:member:: PyBufferProcs* PyTypeObject.tp_as_buffer
413 The :c:member:`~PyTypeObject.tp_as_buffer` field is not inherited, but the contained fields are
423 :c:member:`~PyTypeObject.tp_as_buffer`) that were historically not always present are valid; if
448 :c:member:`~PyTypeObject.tp_as_buffer` has the :attr:`bf_getcharbuffer` field.
1346 If an object does not export the buffer interface, then its :c:member:`~PyTypeObject.tp_as_buffer`
1348 :c:member:`~PyTypeObject.tp_as_buffer` will point to a :c:type:`PyBufferProcs` structure.
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc988 EagerTensorType->tp_as_buffer = &EagerTensor_as_buffer; in TFE_Py_InitEagerTensor()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst82 …| :c:member:`~PyTypeObject.tp_as_buffer` | :c:type:`PyBufferProcs` * | …
969 .. c:member:: PyBufferProcs* PyTypeObject.tp_as_buffer
977 The :c:member:`~PyTypeObject.tp_as_buffer` field is not inherited,
987 :c:member:`~PyTypeObject.tp_as_buffer`) that were historically not always present are valid; if
2494 0, /* tp_as_buffer */
/external/python/cpython2/PC/
D_winreg.c891 PyBufferProcs *pb = value->ob_type->tp_as_buffer; in Py2Reg()
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a6.rst1190 :c:member:`PyTypeObject.tp_as_buffer` member.
/external/python/cpython3/Python/
Dgetargs.c1411 PyBufferProcs *pb = Py_TYPE(arg)->tp_as_buffer; in convertbuffer()
/external/python/pybind11/include/pybind11/
Dpybind11.h1151 if (!type->ht_type.tp_as_buffer) in PYBIND11_NAMESPACE_BEGIN()

12