File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ any other object.
20
20
read/write, otherwise it may be either read-only or read/write at the
21
21
discretion of the exporter.
22
22
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
+
23
34
.. c :function :: PyObject *PyMemoryView_FromMemory (char *mem, Py_ssize_t size, int flags)
24
35
25
36
Create a memoryview object using *mem * as the underlying buffer.
@@ -41,6 +52,8 @@ any other object.
41
52
original memory. Otherwise, a copy is made and the memoryview points to a
42
53
new bytes object.
43
54
55
+ *buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
56
+
44
57
45
58
.. c:function:: int PyMemoryView_Check(PyObject *obj)
46
59
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ Doc/c-api/gcsupport.rst
9
9
Doc/c-api/init.rst
10
10
Doc/c-api/init_config.rst
11
11
Doc/c-api/intro.rst
12
- Doc/c-api/memoryview.rst
13
12
Doc/c-api/module.rst
14
13
Doc/c-api/stable.rst
15
14
Doc/c-api/sys.rst
You can’t perform that action at this time.
0 commit comments