Searched refs:PyBUF_WRITABLE (Results 1 – 13 of 13) sorted by relevance
/third_party/python/Include/cpython/ |
D | object.h | 75 #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/ |
D | bufferedio.c.h | 22 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()
|
D | winconsoleio.c.h | 193 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io__WindowsConsoleIO_readinto()
|
D | fileio.c.h | 196 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io_FileIO_readinto()
|
D | bytesio.c.h | 320 if (PyObject_GetBuffer(arg, &buffer, PyBUF_WRITABLE) < 0) { in _io_BytesIO_readinto()
|
/third_party/python/Doc/c-api/ |
D | buffer.rst | 123 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/ |
D | abstract.c | 363 ((*pb->bf_getbuffer)(obj, &view, PyBUF_WRITABLE) != 0)) { in PyObject_AsWriteBuffer() 722 if (((flags & PyBUF_WRITABLE) == PyBUF_WRITABLE) && in PyBuffer_FillInfo()
|
D | memoryobject.c | 237 #define REQ_WRITABLE(flags) (flags&PyBUF_WRITABLE)
|
/third_party/python/Lib/test/ |
D | test_buffer.py | 979 (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.c | 80 #define REQ_WRITABLE(flags) (flags&PyBUF_WRITABLE) 2870 PyModule_AddIntMacro(m, PyBUF_WRITABLE); in PyInit__testbuffer()
|
D | posixmodule.c | 9572 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/ |
D | getargs.c | 1304 if (PyObject_GetBuffer(arg, (Py_buffer*)p, PyBUF_WRITABLE) < 0) { in convertsimple()
|
/third_party/python/Doc/whatsnew/ |
D | 2.6.rst | 1141 * :const:`PyBUF_WRITABLE` indicates that the memory must be writable.
|