Home
last modified time | relevance | path

Searched refs:PyBUF_FULL_RO (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_buffer.py887 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.c1310 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.c2961 if (PyBuffer_FillInfo(&info, NULL, NULL, 1, 1, PyBUF_FULL_RO) < 0) in make_memoryview_from_NULL_pointer()
/external/python/cpython2/Objects/
Dmemoryobject.c85 if (PyObject_GetBuffer(base, &view, PyBUF_FULL_RO) < 0) in PyMemoryView_FromObject()
259 flags = PyBUF_FULL_RO; in PyMemoryView_GetContiguous()
Dbytearrayobject.c173 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()
Dabstract.c601 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
Dbytesobject.c2636 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
/external/python/cpython3/Objects/
Dmemoryobject.c88 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()
Dbytearrayobject.c112 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()
Dabstract.c566 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
Dbytesobject.c2631 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
Dunicodeobject.c3232 if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0) in PyUnicode_Decode()
/external/python/cpython3/Include/
Dobject.h226 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
/external/python/cpython2/Include/
Dobject.h207 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
/external/python/cpython2/Doc/c-api/
Dbuffer.rst251 | :c:macro:`PyBUF_FULL_RO` | This is equivalent to ``(PyBUF_INDIRECT | |
/external/python/cpython3/Doc/c-api/
Dbuffer.rst325 | .. c:macro:: PyBUF_FULL_RO | yes | yes | if needed | U | 1 or 0 | yes |