/external/python/cpython2/Objects/ |
D | memoryobject.c | 38 res = PyObject_GetBuffer(self->view.obj, view, flags); in memory_getbuf() 85 if (PyObject_GetBuffer(base, &view, PyBUF_FULL_RO) < 0) in PyMemoryView_FromObject() 266 if (PyObject_GetBuffer(obj, view, flags) != 0) { in PyMemoryView_GetContiguous() 411 if (PyObject_GetBuffer((PyObject *)self, &view, PyBUF_SIMPLE) < 0) in memory_tobytes() 602 if (PyObject_GetBuffer(view->obj, &newview, newflags) == -1) in memory_subscript() 681 if (PyObject_GetBuffer(value, &srcview, PyBUF_CONTIG_RO) == -1) { in memory_ass_sub() 727 if (PyObject_GetBuffer(v, &vv, PyBUF_CONTIG_RO) == -1) { in memory_richcompare() 731 if (PyObject_GetBuffer(w, &ww, PyBUF_CONTIG_RO) == -1) { in memory_richcompare()
|
D | bytesobject.c | 1440 if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || in bytes_concat() 1441 PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { in bytes_concat() 1792 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_split_impl() 1877 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_rsplit_impl() 1955 if (PyObject_GetBuffer(sepobj, &vsep, PyBUF_SIMPLE) != 0) in do_xstrip() 2126 if (PyObject_GetBuffer(table, &table_view, PyBUF_SIMPLE) != 0) in bytes_translate_impl() 2145 if (PyObject_GetBuffer(deletechars, &del_table_view, PyBUF_SIMPLE) != 0) { in bytes_translate_impl() 2636 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer() 2899 if (PyObject_GetBuffer(w, &wb, PyBUF_SIMPLE) != 0) { in PyBytes_Concat()
|
D | abstract.c | 360 PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags) in PyObject_GetBuffer() function 600 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 601 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
/external/python/cpython3/Objects/ |
D | bytearrayobject.c | 112 if (PyObject_GetBuffer(obj, &view, PyBUF_FULL_RO) < 0) { in _PyByteArray_FromBufferObject() 275 if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || in PyByteArray_Concat() 276 PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { in PyByteArray_Concat() 316 if (PyObject_GetBuffer(other, &vo, PyBUF_SIMPLE) != 0) { in bytearray_iconcat() 572 if (PyObject_GetBuffer(values, &vbytes, PyBUF_SIMPLE) != 0) { in bytearray_setslice() 845 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init() 1034 if (PyObject_GetBuffer(self, &self_bytes, PyBUF_SIMPLE) != 0) { in bytearray_richcompare() 1040 if (PyObject_GetBuffer(other, &other_bytes, PyBUF_SIMPLE) != 0) { in bytearray_richcompare() 1220 } else if (PyObject_GetBuffer(table, &vtable, PyBUF_SIMPLE) != 0) { in bytearray_translate_impl() 1233 if (PyObject_GetBuffer(deletechars, &vdel, PyBUF_SIMPLE) != 0) { in bytearray_translate_impl() [all …]
|
D | bytes_methods.c | 537 if (PyObject_GetBuffer(subobj, &subbuf, PyBUF_SIMPLE) != 0) in find_internal() 686 if (PyObject_GetBuffer(sub_obj, &vsub, PyBUF_SIMPLE) != 0) in _Py_bytes_count() 717 if (PyObject_GetBuffer(arg, &varg, PyBUF_SIMPLE) != 0) in _Py_bytes_contains() 750 if (PyObject_GetBuffer(substr, &sub_view, PyBUF_SIMPLE) != 0) in tailmatch()
|
D | bytesobject.c | 1446 if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || in bytes_concat() 1447 PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { in bytes_concat() 1785 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_split_impl() 1870 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_rsplit_impl() 1948 if (PyObject_GetBuffer(sepobj, &vsep, PyBUF_SIMPLE) != 0) in do_xstrip() 2119 if (PyObject_GetBuffer(table, &table_view, PyBUF_SIMPLE) != 0) in bytes_translate_impl() 2138 if (PyObject_GetBuffer(deletechars, &del_table_view, PyBUF_SIMPLE) != 0) { in bytes_translate_impl() 2631 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer() 2931 if (PyObject_GetBuffer(w, &wb, PyBUF_SIMPLE) != 0) { in PyBytes_Concat()
|
D | abstract.c | 301 if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) != 0) in as_read_buffer() 354 PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags) in PyObject_GetBuffer() function 565 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 566 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData() 1413 if (PyObject_GetBuffer(o, &view, PyBUF_SIMPLE) == 0) { in PyNumber_Long()
|
D | memoryobject.c | 88 if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { in _PyManagedBuffer_FromObject() 2474 if (PyObject_GetBuffer(value, &src, PyBUF_FULL_RO) < 0) in memory_ass_sub() 2750 if (PyObject_GetBuffer(w, &wbuf, PyBUF_FULL_RO) < 0) { in memory_richcompare()
|
/external/python/cpython3/Doc/c-api/ |
D | objbuffer.rst | 15 Therefore, it is recommended that you call :c:func:`PyObject_GetBuffer` 46 To get error reporting use :c:func:`PyObject_GetBuffer()` instead.
|
D | buffer.rst | 56 * call :c:func:`PyObject_GetBuffer` with the right parameters; 88 a buffer, see :c:func:`PyObject_GetBuffer`. 224 object via :c:func:`PyObject_GetBuffer`. Since the complexity of the logical 431 returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` will 435 .. c:function:: int PyObject_GetBuffer(PyObject *exporter, Py_buffer *view, int flags) 447 Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls 460 :c:func:`PyObject_GetBuffer`.
|
/external/python/cpython3/Modules/ |
D | hashlib.h | 19 if (PyObject_GetBuffer((obj), (viewp), PyBUF_SIMPLE) == -1) { \
|
D | _testbuffer.c | 247 if (PyObject_GetBuffer(exporter, base, flags) < 0) in ndarray_init_staticbuf() 1425 return PyObject_GetBuffer(base->obj, view, flags); in ndarray_getbuf() 1907 if (PyObject_GetBuffer(value, &src, PyBUF_FULL_RO) == -1) in ndarray_ass_subscript() 2319 if (PyObject_GetBuffer(bufobj, &view, PyBUF_FULL_RO) < 0) in get_pointer() 2442 if (PyObject_GetBuffer(obj, &view, flags) < 0) { in py_buffer_to_contiguous() 2514 if (PyObject_GetBuffer(b1, &v1, PyBUF_FULL_RO) < 0) { in cmp_contig() 2520 if (PyObject_GetBuffer(b2, &v2, PyBUF_FULL_RO) < 0) { in cmp_contig() 2590 if (PyObject_GetBuffer(obj, &view, PyBUF_FULL_RO) < 0) { in is_contiguous()
|
D | _codecsmodule.c | 274 if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) != 0) in _codecs_unicode_internal_decode_impl() 725 if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) != 0) in _codecs_unicode_internal_encode_impl()
|
D | zlibmodule.c | 515 if (PyObject_GetBuffer(self->zdict, &zdict_buf, PyBUF_SIMPLE) == -1) { in set_inflate_zdict() 1068 if (PyObject_GetBuffer(self->unconsumed_tail, &data, PyBUF_SIMPLE) == -1) in zlib_Decompress_flush_impl()
|
D | _operator.c | 840 if (PyObject_GetBuffer(a, &view_a, PyBUF_SIMPLE) == -1) { in _operator__compare_digest_impl() 850 if (PyObject_GetBuffer(b, &view_b, PyBUF_SIMPLE) == -1) { in _operator__compare_digest_impl()
|
/external/python/cpython3/PC/ |
D | winsound.c | 93 if (PyObject_GetBuffer(sound, &view, PyBUF_SIMPLE) < 0) { in winsound_PlaySound_impl()
|
/external/python/cpython3/Objects/stringlib/ |
D | join.h | 68 else if (PyObject_GetBuffer(item, &buffers[i], PyBUF_SIMPLE) != 0) { in STRINGLIB()
|
/external/python/cpython3/Modules/_sqlite/ |
D | statement.c | 169 if (PyObject_GetBuffer(parameter, &view, PyBUF_SIMPLE) != 0) { in pysqlite_statement_bind_parameter()
|
/external/python/cpython2/Modules/ |
D | operator.c | 330 if (PyObject_GetBuffer(a, &view_a, PyBUF_SIMPLE) == -1) { in compare_digest() 340 if (PyObject_GetBuffer(b, &view_b, PyBUF_SIMPLE) == -1) { in compare_digest()
|
/external/python/cpython2/Include/ |
D | abstract.h | 542 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
|
/external/python/cpython3/Include/ |
D | abstract.h | 520 PyAPI_FUNC(int) PyObject_GetBuffer(PyObject *obj, Py_buffer *view,
|
/external/python/cpython2/Modules/_io/ |
D | bytesio.c | 569 if (PyObject_GetBuffer(obj, &buf, PyBUF_CONTIG_RO) < 0) in bytesio_write()
|
/external/python/cpython2/Misc/NEWS.d/ |
D | 2.7a3.rst | 29 Fix a crash in ``PyMemoryView_FromObject()`` when ``PyObject_GetBuffer()``
|
/external/python/cpython3/Modules/_io/ |
D | bytesio.c | 677 if (PyObject_GetBuffer(b, &buf, PyBUF_CONTIG_RO) < 0) in _io_BytesIO_write()
|
/external/python/cpython3/Doc/data/ |
D | refcounts.dat | 1659 PyObject_GetBuffer:int::: 1660 PyObject_GetBuffer:PyObject*:exporter:0: 1661 PyObject_GetBuffer:Py_buffer*:view:: 1662 PyObject_GetBuffer:int:flags::
|