/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() 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() 1472 if (PyObject_GetBuffer(sep, &vsub, PyBUF_SIMPLE) != 0) in bytearray_rsplit_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() 2884 if (PyObject_GetBuffer(w, &wb, PyBUF_SIMPLE) != 0) { in PyBytes_Concat()
|
D | abstract.c | 271 if ((*pb->bf_getbuffer)(obj, &view, PyBUF_SIMPLE) == -1) { in PyObject_CheckReadBuffer() 289 if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) != 0) in PyObject_AsReadBuffer() 1371 if (PyObject_GetBuffer(o, &view, PyBUF_SIMPLE) == 0) { in PyNumber_Long()
|
/external/python/cpython3/Modules/ |
D | hashlib.h | 19 if (PyObject_GetBuffer((obj), (viewp), PyBUF_SIMPLE) == -1) { \
|
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()
|
D | _testcapimodule.c | 2909 ret = PyBuffer_FillInfo(NULL, NULL, dummy, 1, 0, PyBUF_SIMPLE); in test_pep3118_obsolete_write_locks() 2921 ret = PyObject_GetBuffer(b, NULL, PyBUF_SIMPLE); in test_pep3118_obsolete_write_locks() 2943 if (PyObject_GetBuffer(obj, NULL, PyBUF_SIMPLE) < 0) in getbuffer_with_null_view()
|
D | mmapmodule.c | 945 if (PyObject_GetBuffer(value, &vbuf, PyBUF_SIMPLE) < 0) in mmap_ass_subscript()
|
D | pyexpat.c | 737 if (PyObject_GetBuffer(data, &view, PyBUF_SIMPLE) < 0) in pyexpat_xmlparser_Parse_impl()
|
/external/python/cpython3/PC/ |
D | winsound.c | 93 if (PyObject_GetBuffer(sound, &view, PyBUF_SIMPLE) < 0) { in winsound_PlaySound_impl()
|
D | winreg.c | 682 if (PyObject_GetBuffer(value, &view, PyBUF_SIMPLE) < 0) in Py2Reg()
|
/external/python/cpython3/Objects/stringlib/ |
D | join.h | 68 else if (PyObject_GetBuffer(item, &buffers[i], PyBUF_SIMPLE) != 0) { in STRINGLIB()
|
/external/python/cpython3/Doc/c-api/ |
D | buffer.rst | 123 most cases such a request will be :c:macro:`PyBUF_SIMPLE` or :c:macro:`PyBUF_WRITABLE`. 144 If :c:member:`~Py_buffer.shape` is *NULL* as a result of a :c:macro:`PyBUF_SIMPLE` 255 Since :c:macro:`PyBUF_SIMPLE` is defined as 0, :c:macro:`PyBUF_WRITABLE` 258 :c:macro:`PyBUF_FORMAT` can be \|'d to any of the flags except :c:macro:`PyBUF_SIMPLE`. 280 | .. c:macro:: PyBUF_SIMPLE | NULL | NULL | NULL |
|
/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()
|
D | connection.c | 514 if (PyObject_GetBuffer(py_val, &view, PyBUF_SIMPLE) != 0) { in _pysqlite_set_result()
|
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 997 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE, 1078 ex = ndarray(base, getbuf=PyBUF_SIMPLE) 1085 nd = ndarray(ex, getbuf=PyBUF_SIMPLE) 1218 nd = ndarray(ex, getbuf=PyBUF_SIMPLE) 1484 nd = ndarray(ex, getbuf=PyBUF_SIMPLE) 1671 x = ndarray(ex, getbuf=PyBUF_SIMPLE) 2101 PyBUF_INDIRECT, PyBUF_STRIDES, PyBUF_ND, PyBUF_SIMPLE, 2374 nd = ndarray(ex, getbuf=PyBUF_SIMPLE) 2439 nd = ndarray(ex, getbuf=PyBUF_SIMPLE)
|
/external/python/cpython2/Include/ |
D | object.h | 185 #define PyBUF_SIMPLE 0 macro
|
/external/python/cpython3/Include/ |
D | object.h | 204 #define PyBUF_SIMPLE 0 macro
|
/external/python/cpython2/Objects/ |
D | memoryobject.c | 411 if (PyObject_GetBuffer((PyObject *)self, &view, PyBUF_SIMPLE) < 0) in memory_tobytes()
|
/external/python/cpython2/Doc/c-api/ |
D | buffer.rst | 174 | :c:macro:`PyBUF_SIMPLE` | This is the default flag state. The returned |
|