Searched refs:PyBUF_FULL_RO (Results 1 – 11 of 11) sorted by relevance
/third_party/python/Objects/ |
D | picklebufobject.c | 28 if (PyObject_GetBuffer(base, &self->view, PyBUF_FULL_RO) < 0) { in PyPickleBuffer_FromObject() 87 if (PyObject_GetBuffer(base, &self->view, PyBUF_FULL_RO) < 0) { in picklebuf_new()
|
D | memoryobject.c | 104 if (PyObject_GetBuffer(base, &mbuf->master, PyBUF_FULL_RO) < 0) { in _PyManagedBuffer_FromObject() 744 PyBUF_FULL_RO); in PyMemoryView_FromMemory() 2580 if (PyObject_GetBuffer(value, &src, PyBUF_FULL_RO) < 0) in memory_ass_sub() 2856 if (PyObject_GetBuffer(w, &wbuf, PyBUF_FULL_RO) < 0) { in memory_richcompare()
|
D | bytearrayobject.c | 91 if (PyObject_GetBuffer(obj, &view, PyBUF_FULL_RO) < 0) { in _PyByteArray_FromBufferObject() 833 if (PyObject_GetBuffer(arg, &view, PyBUF_FULL_RO) < 0) in bytearray___init___impl()
|
D | abstract.c | 634 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
|
D | bytesobject.c | 2658 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
|
D | unicodeobject.c | 3664 if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0) in PyUnicode_Decode()
|
/third_party/python/Lib/test/ |
D | test_buffer.py | 894 contig = py_buffer_to_contiguous(result, 'C', PyBUF_FULL_RO) 914 contig = py_buffer_to_contiguous(result, 'F', PyBUF_FULL_RO) 929 contig = py_buffer_to_contiguous(result, 'A', PyBUF_FULL_RO) 997 nd = ndarray(ex, getbuf=PyBUF_FULL_RO) 1028 PyBUF_FULL, PyBUF_FULL_RO, 2131 PyBUF_FULL, PyBUF_FULL_RO, 2139 PyBUF_FULL_RO) 2301 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2323 for request in [PyBUF_FULL, PyBUF_FULL_RO, PyBUF_INDIRECT, 2345 b = py_buffer_to_contiguous(nd, 'C', PyBUF_FULL_RO) [all …]
|
/third_party/python/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 | 3470 if (PyBuffer_FillInfo(&info, NULL, NULL, 1, 1, PyBUF_FULL_RO) < 0) in make_memoryview_from_NULL_pointer()
|
/third_party/python/Include/cpython/ |
D | object.h | 96 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
|
/third_party/python/Doc/c-api/ |
D | buffer.rst | 325 | .. c:macro:: PyBUF_FULL_RO | yes | yes | if needed | U | 1 or 0 | yes |
|