Home
last modified time | relevance | path

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

/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/Include/
Dabstract.h512 (((obj)->ob_type->tp_as_buffer != NULL) && \
513 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
Dobject.h376 PyBufferProcs *tp_as_buffer; member
/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/Objects/
Dabstract.c278 PyBufferProcs *pb = obj->ob_type->tp_as_buffer; in PyObject_CheckReadBuffer()
336 pb = obj->ob_type->tp_as_buffer; in PyObject_AsWriteBuffer()
356 PyBufferProcs *pb = obj->ob_type->tp_as_buffer; in PyObject_GetBuffer()
690 pb = Py_TYPE(obj)->tp_as_buffer; in PyBuffer_Release()
Dtypeobject.c2607 type->tp_as_buffer = &et->as_buffer; in type_new()
2913 type->tp_as_buffer = &res->as_buffer; in PyType_FromSpecWithBases()
4961 #define COPYBUF(SLOT) COPYSLOT(tp_as_buffer->SLOT) in inherit_slots()
5039 if (type->tp_as_buffer != NULL && base->tp_as_buffer != NULL) { in inherit_slots()
5041 if (basebase->tp_as_buffer == NULL) in inherit_slots()
5299 if (type->tp_as_buffer == NULL) in PyType_Ready()
5300 type->tp_as_buffer = base->tp_as_buffer; in PyType_Ready()
/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/python/cpython2/PC/
D_winreg.c891 PyBufferProcs *pb = value->ob_type->tp_as_buffer; in Py2Reg()
/external/python/cpython3/Doc/c-api/
Dtypeobj.rst370 .. c:member:: PyBufferProcs* PyTypeObject.tp_as_buffer
376 The :c:member:`~PyTypeObject.tp_as_buffer` field is not inherited, but the contained fields are
386 :c:member:`~PyTypeObject.tp_as_buffer`) that were historically not always present are valid; if
/external/python/cpython3/Python/
Dgetargs.c1360 PyBufferProcs *pb = Py_TYPE(arg)->tp_as_buffer; in convertbuffer()
/external/python/cpython2/Modules/
D_sre.c1721 buffer = Py_TYPE(string)->tp_as_buffer; in getstring()
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c1220 size = Py_TYPE(value)->tp_as_buffer->bf_getreadbuffer(value, 0, (void *)&ptr); in CharArray_set_raw()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst100 0, /* tp_as_buffer */
/external/python/cpython2/Misc/
DHISTORY3219 the data and the data length. Instead, the appropriate tp_as_buffer
4858 - A C type that inherits from a base type that defines tp_as_buffer
4859 will now inherit the tp_as_buffer pointer if it doesn't define one.
/external/python/cpython3/Misc/
DHISTORY20603 the data and the data length. Instead, the appropriate tp_as_buffer
22242 - A C type that inherits from a base type that defines tp_as_buffer
22243 will now inherit the tp_as_buffer pointer if it doesn't define one.