File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ any other object.
2020 read/write, otherwise it may be either read-only or read/write at the
2121 discretion of the exporter.
2222
23+
24+ .. c :macro :: PyBUF_READ
25+
26+ Flag to request a readonly buffer.
27+
28+
29+ .. c :macro :: PyBUF_WRITE
30+
31+ Flag to request a writable buffer.
32+
33+
2334.. c :function :: PyObject *PyMemoryView_FromMemory (char *mem, Py_ssize_t size, int flags)
2435
2536 Create a memoryview object using *mem * as the underlying buffer.
@@ -41,6 +52,8 @@ any other object.
4152 original memory. Otherwise, a copy is made and the memoryview points to a
4253 new bytes object.
4354
55+ *buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
56+
4457
4558.. c:function:: int PyMemoryView_Check(PyObject *obj)
4659
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Doc/c-api/gcsupport.rst
99Doc/c-api/init.rst
1010Doc/c-api/init_config.rst
1111Doc/c-api/intro.rst
12- Doc/c-api/memoryview.rst
1312Doc/c-api/module.rst
1413Doc/c-api/stable.rst
1514Doc/c-api/sys.rst
You can’t perform that action at this time.
0 commit comments