/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() 601 if (PyObject_GetBuffer(view->obj, &newview, newflags) == -1) in memory_subscript() 680 if (PyObject_GetBuffer(value, &srcview, PyBUF_CONTIG_RO) == -1) { in memory_ass_sub() 726 if (PyObject_GetBuffer(v, &vv, PyBUF_CONTIG_RO) == -1) { in memory_richcompare() 730 if (PyObject_GetBuffer(w, &ww, PyBUF_CONTIG_RO) == -1) { in memory_richcompare()
|
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 | 254 if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || in PyByteArray_Concat() 255 PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { in PyByteArray_Concat() 295 if (PyObject_GetBuffer(other, &vo, PyBUF_SIMPLE) != 0) { in bytearray_iconcat() 550 if (PyObject_GetBuffer(values, &vbytes, PyBUF_SIMPLE) != 0) { in bytearray_setslice() 823 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init() 1010 if (PyObject_GetBuffer(self, &self_bytes, PyBUF_SIMPLE) != 0) { in bytearray_richcompare() 1016 if (PyObject_GetBuffer(other, &other_bytes, PyBUF_SIMPLE) != 0) { in bytearray_richcompare() 1209 } else if (PyObject_GetBuffer(table, &vtable, PyBUF_SIMPLE) != 0) { in bytearray_translate_impl() 1222 if (PyObject_GetBuffer(deletechars, &vdel, PyBUF_SIMPLE) != 0) { in bytearray_translate_impl() 1362 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytearray_split_impl() [all …]
|
D | bytes_methods.c | 481 if (PyObject_GetBuffer(subobj, &subbuf, PyBUF_SIMPLE) != 0) in find_internal() 622 if (PyObject_GetBuffer(sub_obj, &vsub, PyBUF_SIMPLE) != 0) in _Py_bytes_count() 653 if (PyObject_GetBuffer(arg, &varg, PyBUF_SIMPLE) != 0) in _Py_bytes_contains() 686 if (PyObject_GetBuffer(substr, &sub_view, PyBUF_SIMPLE) != 0) in tailmatch()
|
D | bytesobject.c | 1425 if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || in bytes_concat() 1426 PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { in bytes_concat() 1777 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_split_impl() 1862 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytes_rsplit_impl() 1940 if (PyObject_GetBuffer(sepobj, &vsep, PyBUF_SIMPLE) != 0) in do_xstrip() 2111 if (PyObject_GetBuffer(table, &table_view, PyBUF_SIMPLE) != 0) in bytes_translate_impl() 2130 if (PyObject_GetBuffer(deletechars, &del_table_view, PyBUF_SIMPLE) != 0) { in bytes_translate_impl() 2621 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer() 2884 if (PyObject_GetBuffer(w, &wb, PyBUF_SIMPLE) != 0) { in PyBytes_Concat()
|
D | abstract.c | 289 if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) != 0) in PyObject_AsReadBuffer() 327 PyObject_GetBuffer(PyObject *obj, Py_buffer *view, int flags) in PyObject_GetBuffer() function 538 if (PyObject_GetBuffer(dest, &view_dest, PyBUF_FULL) != 0) return -1; in PyObject_CopyData() 539 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData() 1371 if (PyObject_GetBuffer(o, &view, PyBUF_SIMPLE) == 0) { in PyNumber_Long()
|
D | memoryobject.c | 86 if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { in _PyManagedBuffer_FromObject() 2472 if (PyObject_GetBuffer(value, &src, PyBUF_FULL_RO) < 0) in memory_ass_sub() 2748 if (PyObject_GetBuffer(w, &wbuf, PyBUF_FULL_RO) < 0) { in memory_richcompare()
|
/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() 1909 if (PyObject_GetBuffer(value, &src, PyBUF_FULL_RO) == -1) in ndarray_ass_subscript() 2320 if (PyObject_GetBuffer(bufobj, &view, PyBUF_FULL_RO) < 0) in get_pointer() 2443 if (PyObject_GetBuffer(obj, &view, flags) < 0) { in py_buffer_to_contiguous() 2515 if (PyObject_GetBuffer(b1, &v1, PyBUF_FULL_RO) < 0) { in cmp_contig() 2521 if (PyObject_GetBuffer(b2, &v2, PyBUF_FULL_RO) < 0) { in cmp_contig() 2591 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 | 524 if (PyObject_GetBuffer(self->zdict, &zdict_buf, PyBUF_SIMPLE) == -1) { in set_inflate_zdict() 1079 if (PyObject_GetBuffer(self->unconsumed_tail, &data, PyBUF_SIMPLE) == -1) in zlib_Decompress_flush_impl()
|
D | _operator.c | 290 if (PyObject_GetBuffer(a, &view_a, PyBUF_SIMPLE) == -1) { in compare_digest() 300 if (PyObject_GetBuffer(b, &view_b, PyBUF_SIMPLE) == -1) { in compare_digest()
|
D | _struct.c | 1536 if (PyObject_GetBuffer(input, &vbuf, PyBUF_SIMPLE) < 0) in s_unpack() 1575 if (PyObject_GetBuffer(input, &vbuf, PyBUF_SIMPLE) < 0) in s_unpack_from() 1709 if (PyObject_GetBuffer(input, &self->buf, PyBUF_SIMPLE) < 0) { in s_iter_unpack()
|
D | binascii.c | 228 if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) { in ascii_buffer_converter()
|
/external/python/cpython3/Doc/c-api/ |
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`.
|
D | objbuffer.rst | 15 Therefore, it is recommended that you call :c:func:`PyObject_GetBuffer`
|
/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/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/cpython3/Modules/_sqlite/ |
D | statement.c | 169 if (PyObject_GetBuffer(parameter, &view, PyBUF_SIMPLE) != 0) { in pysqlite_statement_bind_parameter()
|
/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 | 612 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/cpython3/Modules/_io/ |
D | bytesio.c | 724 if (PyObject_GetBuffer(b, &buf, PyBUF_CONTIG_RO) < 0) in _io_BytesIO_write()
|
/external/python/cpython3/Python/ |
D | getargs.c | 1271 if (PyObject_GetBuffer(arg, (Py_buffer*)p, PyBUF_WRITABLE) < 0) { in convertsimple() 1327 if (PyObject_GetBuffer(arg, view, PyBUF_SIMPLE) != 0) { in getbuffer()
|