Home
last modified time | relevance | path

Searched refs:PyBUF_SIMPLE (Results 1 – 25 of 41) sorted by relevance

12

/external/python/cpython3/Objects/
Dbytearrayobject.c254 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 …]
Dbytes_methods.c481 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()
Dbytesobject.c1425 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()
Dabstract.c271 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/
Dhashlib.h19 if (PyObject_GetBuffer((obj), (viewp), PyBUF_SIMPLE) == -1) { \
D_codecsmodule.c274 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()
Dzlibmodule.c524 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.c290 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.c1536 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()
Dbinascii.c228 if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) { in ascii_buffer_converter()
D_testcapimodule.c2909 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()
Dmmapmodule.c945 if (PyObject_GetBuffer(value, &vbuf, PyBUF_SIMPLE) < 0) in mmap_ass_subscript()
Dpyexpat.c737 if (PyObject_GetBuffer(data, &view, PyBUF_SIMPLE) < 0) in pyexpat_xmlparser_Parse_impl()
/external/python/cpython3/PC/
Dwinsound.c93 if (PyObject_GetBuffer(sound, &view, PyBUF_SIMPLE) < 0) { in winsound_PlaySound_impl()
Dwinreg.c682 if (PyObject_GetBuffer(value, &view, PyBUF_SIMPLE) < 0) in Py2Reg()
/external/python/cpython3/Objects/stringlib/
Djoin.h68 else if (PyObject_GetBuffer(item, &buffers[i], PyBUF_SIMPLE) != 0) { in STRINGLIB()
/external/python/cpython3/Doc/c-api/
Dbuffer.rst123 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/
Doperator.c330 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/
Dstatement.c169 if (PyObject_GetBuffer(parameter, &view, PyBUF_SIMPLE) != 0) { in pysqlite_statement_bind_parameter()
Dconnection.c514 if (PyObject_GetBuffer(py_val, &view, PyBUF_SIMPLE) != 0) { in _pysqlite_set_result()
/external/python/cpython3/Lib/test/
Dtest_buffer.py997 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/
Dobject.h185 #define PyBUF_SIMPLE 0 macro
/external/python/cpython3/Include/
Dobject.h204 #define PyBUF_SIMPLE 0 macro
/external/python/cpython2/Objects/
Dmemoryobject.c411 if (PyObject_GetBuffer((PyObject *)self, &view, PyBUF_SIMPLE) < 0) in memory_tobytes()
/external/python/cpython2/Doc/c-api/
Dbuffer.rst174 | :c:macro:`PyBUF_SIMPLE` | This is the default flag state. The returned |

12