Searched refs:PyBUF_FULL_RO (Results 1 – 16 of 16) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 887 contig = py_buffer_to_contiguous(result, 'C', PyBUF_FULL_RO) 898 contig = py_buffer_to_contiguous(result, 'F', PyBUF_FULL_RO) 910 contig = py_buffer_to_contiguous(result, 'A', PyBUF_FULL_RO) 970 nd = ndarray(ex, getbuf=PyBUF_FULL_RO) 1001 PyBUF_FULL, PyBUF_FULL_RO, 2104 PyBUF_FULL, PyBUF_FULL_RO, 2112 PyBUF_FULL_RO) 2274 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2296 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2318 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() 1614 if (ndarray_init_staticbuf((PyObject *)self, nd, PyBUF_FULL_RO) < 0) { in ndarray_item() 1811 if (ndarray_init_staticbuf((PyObject *)self, nd, PyBUF_FULL_RO) < 0) { in ndarray_subscript() 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() 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() 2879 PyModule_AddIntMacro(m, PyBUF_FULL_RO); in PyInit__testbuffer()
|
D | _testcapimodule.c | 2961 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 | 173 if (PyObject_GetBuffer(obj, &view, PyBUF_FULL_RO) < 0) { in _PyByteArray_FromBufferObject() 876 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()
|
D | bytesobject.c | 2636 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
|
/external/python/cpython3/Objects/ |
D | memoryobject.c | 88 if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { in _PyManagedBuffer_FromObject() 734 PyBUF_FULL_RO); in PyMemoryView_FromMemory() 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()
|
D | bytearrayobject.c | 112 if (PyObject_GetBuffer(obj, &view, PyBUF_FULL_RO) < 0) { in _PyByteArray_FromBufferObject() 845 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray_init()
|
D | abstract.c | 566 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
D | bytesobject.c | 2631 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
|
D | unicodeobject.c | 3232 if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0) in PyUnicode_Decode()
|
/external/python/cpython3/Include/ |
D | object.h | 226 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
|
/external/python/cpython2/Include/ |
D | object.h | 207 #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 |
|