/external/python/cpython2/Objects/ |
D | bufferobject.c | 37 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()
|
D | abstract.c | 257 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()
|
D | typeobject.c | 2371 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;
|
D | bytearrayobject.c | 132 PyBufferProcs *buffer = Py_TYPE(obj)->tp_as_buffer; in _getbuffer()
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 30 PyBufferProcs *tp_as_buffer; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 31 PyBufferProcs *tp_as_buffer; member
|
/external/python/cpython2/Include/ |
D | code.h | 87 ((*Py_TYPE((co)->co_code)->tp_as_buffer->bf_getreadbuffer) \
|
D | abstract.h | 535 (((obj)->ob_type->tp_as_buffer != NULL) && \ 537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
|
D | object.h | 353 PyBufferProcs *tp_as_buffer; member
|
/external/python/cpython3/Objects/ |
D | abstract.c | 286 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()
|
D | picklebufobject.c | 217 .tp_as_buffer = &picklebuf_as_buffer,
|
D | typeobject.c | 2618 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/ |
D | getargs.c | 1294 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()
|
D | marshal.c | 449 PyBufferProcs *pb = v->ob_type->tp_as_buffer; in w_object()
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 223 PyBufferProcs *tp_as_buffer; member
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | xla.cc | 336 buffer_type->tp_as_buffer = PyBuffer::BufferProtocol(); in PYBIND11_MODULE()
|
/external/python/pybind11/include/pybind11/detail/ |
D | class.h | 586 heap_type->ht_type.tp_as_buffer = &heap_type->as_buffer; in enable_buffer_protocol()
|
/external/python/cffi/c/ |
D | _cffi_backend.c | 6767 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/ |
D | typeobj.rst | 407 .. 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/ |
D | pywrap_tensor.cc | 988 EagerTensorType->tp_as_buffer = &EagerTensor_as_buffer; in TFE_Py_InitEagerTensor()
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 82 …| :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.c | 891 PyBufferProcs *pb = value->ob_type->tp_as_buffer; in Py2Reg()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.0a6.rst | 1190 :c:member:`PyTypeObject.tp_as_buffer` member.
|
/external/python/cpython3/Python/ |
D | getargs.c | 1411 PyBufferProcs *pb = Py_TYPE(arg)->tp_as_buffer; in convertbuffer()
|
/external/python/pybind11/include/pybind11/ |
D | pybind11.h | 1151 if (!type->ht_type.tp_as_buffer) in PYBIND11_NAMESPACE_BEGIN()
|