Searched refs:PyBUF_FULL_RO (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 886 contig = py_buffer_to_contiguous(result, 'C', PyBUF_FULL_RO) 897 contig = py_buffer_to_contiguous(result, 'F', PyBUF_FULL_RO) 909 contig = py_buffer_to_contiguous(result, 'A', PyBUF_FULL_RO) 969 nd = ndarray(ex, getbuf=PyBUF_FULL_RO) 1000 PyBUF_FULL, PyBUF_FULL_RO, 2103 PyBUF_FULL, PyBUF_FULL_RO, 2111 PyBUF_FULL_RO) 2273 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2295 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2317 b = py_buffer_to_contiguous(nd, 'C', PyBUF_FULL_RO) [all …]
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 1310 getbuf = (getbuf == PyBUF_UNUSED) ? PyBUF_FULL_RO : getbuf; in ndarray_init() 1616 if (ndarray_init_staticbuf((PyObject *)self, nd, PyBUF_FULL_RO) < 0) { in ndarray_item() 1813 if (ndarray_init_staticbuf((PyObject *)self, nd, PyBUF_FULL_RO) < 0) { in ndarray_subscript() 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() 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() 2880 PyModule_AddIntMacro(m, PyBUF_FULL_RO); in PyInit__testbuffer()
|
D | _testcapimodule.c | 2842 if (PyBuffer_FillInfo(&info, NULL, NULL, 1, 1, PyBUF_FULL_RO) < 0) in make_memoryview_from_NULL_pointer()
|
/external/python/cpython2/Objects/ |
D | memoryobject.c | 85 if (PyObject_GetBuffer(base, &view, PyBUF_FULL_RO) < 0) in PyMemoryView_FromObject() 259 flags = PyBUF_FULL_RO; in PyMemoryView_GetContiguous()
|
D | bytearrayobject.c | 855 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init()
|
D | abstract.c | 601 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
/external/python/cpython3/Objects/ |
D | memoryobject.c | 86 if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { in _PyManagedBuffer_FromObject() 732 PyBUF_FULL_RO); in PyMemoryView_FromMemory() 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()
|
D | bytearrayobject.c | 823 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init()
|
D | bytesobject.c | 2621 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
|
D | abstract.c | 539 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
D | unicodeobject.c | 3209 if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0) in PyUnicode_Decode()
|
/external/python/cpython2/Include/ |
D | object.h | 207 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
|
/external/python/cpython3/Include/ |
D | object.h | 226 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
|
/external/python/cpython2/Doc/c-api/ |
D | buffer.rst | 251 | :c:macro:`PyBUF_FULL_RO` | This is equivalent to ``(PyBUF_INDIRECT | |
|
/external/python/cpython3/Doc/c-api/ |
D | buffer.rst | 325 | .. c:macro:: PyBUF_FULL_RO | yes | yes | if needed | U | 1 or 0 | yes |
|