Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dpicklebufobject.c28 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()
Dmemoryobject.c104 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()
Dbytearrayobject.c91 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()
Dabstract.c634 if (PyObject_GetBuffer(src, &view_src, PyBUF_FULL_RO) != 0) { in PyObject_CopyData()
Dbytesobject.c2658 if (PyObject_GetBuffer(x, &view, PyBUF_FULL_RO) < 0) in _PyBytes_FromBuffer()
Dunicodeobject.c3664 if (PyBuffer_FillInfo(&info, NULL, (void *)s, size, 1, PyBUF_FULL_RO) < 0) in PyUnicode_Decode()
/third_party/python/Lib/test/
Dtest_buffer.py894 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.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.c3470 if (PyBuffer_FillInfo(&info, NULL, NULL, 1, 1, PyBUF_FULL_RO) < 0) in make_memoryview_from_NULL_pointer()
/third_party/python/Include/cpython/
Dobject.h96 #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) macro
/third_party/python/Doc/c-api/
Dbuffer.rst325 | .. c:macro:: PyBUF_FULL_RO | yes | yes | if needed | U | 1 or 0 | yes |