Home
last modified time | relevance | path

Searched refs:PyBUF_WRITABLE (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Include/cpython/
Dobject.h75 #define PyBUF_WRITABLE 0x0001 macro
77 #define PyBUF_WRITEABLE PyBUF_WRITABLE
86 #define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
89 #define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE)
92 #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT)
95 #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_WRITABLE | PyBUF_FORMAT)
/third_party/python/Modules/_io/clinic/
Dbufferedio.c.h22 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__BufferedIOBase_readinto()
59 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__BufferedIOBase_readinto1()
234 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__Buffered_readinto()
271 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__Buffered_readinto1()
Dwinconsoleio.c.h193 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__WindowsConsoleIO_readinto()
Dfileio.c.h196 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io_FileIO_readinto()
Dbytesio.c.h320 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io_BytesIO_readinto()
/third_party/python/Doc/c-api/
Dbuffer.rst123 most cases such a request will be :c:macro:`PyBUF_SIMPLE` or :c:macro:`PyBUF_WRITABLE`.
128 by the :c:macro:`PyBUF_WRITABLE` flag.
145 or a :c:macro:`PyBUF_WRITABLE` request, the consumer must disregard
241 .. c:macro:: PyBUF_WRITABLE
254 :c:macro:`PyBUF_WRITABLE` can be \|'d to any of the flags in the next section.
255 Since :c:macro:`PyBUF_SIMPLE` is defined as 0, :c:macro:`PyBUF_WRITABLE`
517 and :c:macro:`PyBUF_WRITABLE` is set in *flags*.
/third_party/python/Objects/
Dabstract.c363 ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITABLE) != 0)) { in PyObject_AsWriteBuffer()
722 if (((flags & PyBUF_WRITABLE) == PyBUF_WRITABLE) && in PyBuffer_FillInfo()
Dmemoryobject.c237 #define REQ_WRITABLE(flags) (flags&PyBUF_WRITABLE)
/third_party/python/Lib/test/
Dtest_buffer.py979 (ex.readonly and match(req, PyBUF_WRITABLE)) or
1001 ro = False if match(req, PyBUF_WRITABLE) else ex.readonly
1059 real_flags = (0, PyBUF_WRITABLE, PyBUF_FORMAT,
1060 PyBUF_WRITABLE|PyBUF_FORMAT)
1107 self.assertRaises(BufferError, ndarray, ex, getbuf=PyBUF_WRITABLE)
1207 self.assertRaises(BufferError, ndarray, b'123', getbuf=PyBUF_WRITABLE)
/third_party/python/Modules/
D_testbuffer.c80 #define REQ_WRITABLE(flags) (flags&PyBUF_WRITABLE)
2870 PyModule_AddIntMacro(m, PyBUF_WRITABLE); in PyInit__testbuffer()
Dposixmodule.c9572 if (iov_setup(&iov, &buf, buffers, cnt, PyBUF_WRITABLE) < 0) in os_readv_impl()
9697 if (iov_setup(&iov, &buf, buffers, cnt, PyBUF_WRITABLE) < 0) { in os_preadv_impl()
/third_party/python/Python/
Dgetargs.c1304 if (PyObject_GetBuffer(arg, (Py_buffer*)p, PyBUF_WRITABLE) < 0) { in convertsimple()
/third_party/python/Doc/whatsnew/
D2.6.rst1141 * :const:`PyBUF_WRITABLE` indicates that the memory must be writable.