Searched refs:PyBUF_WRITE (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython3/Doc/c-api/ |
D | memoryview.rst | 26 *flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
|
/external/python/cpython2/Objects/ |
D | memoryobject.c | 261 case PyBUF_WRITE: in PyMemoryView_GetContiguous() 279 if (buffertype == PyBUF_WRITE) { in PyMemoryView_GetContiguous()
|
/external/python/cpython3/Objects/ |
D | memoryobject.c | 724 assert(flags == PyBUF_READ || flags == PyBUF_WRITE); in PyMemoryView_FromMemory() 730 readonly = (flags == PyBUF_WRITE) ? 0 : 1; in PyMemoryView_FromMemory() 914 assert(buffertype == PyBUF_READ || buffertype == PyBUF_WRITE); in PyMemoryView_GetContiguous() 922 if (buffertype == PyBUF_WRITE && view->readonly) { in PyMemoryView_GetContiguous() 932 if (buffertype == PyBUF_WRITE) { in PyMemoryView_GetContiguous() 1957 x->mview = PyMemoryView_FromMemory(x->item, itemsize, PyBUF_WRITE); in struct_get_unpacker()
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 416 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_WRITE); in pack_single() 714 mview = PyMemoryView_FromMemory(item, base->itemsize, PyBUF_WRITE); in ndarray_as_list() 2414 if (type != PyBUF_READ && type != PyBUF_WRITE) { in get_contiguous() 2889 PyModule_AddIntMacro(m, PyBUF_WRITE); in PyInit__testbuffer()
|
/external/python/cpython3/Lib/test/ |
D | test_buffer.py | 3937 self.assertRaises(BufferError, get_contiguous, b'x', PyBUF_WRITE, 'C') 3941 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'A') 3960 m = get_contiguous(nd, PyBUF_WRITE, order) 3985 m = get_contiguous(nd, PyBUF_WRITE, order) 3991 m = get_contiguous(nd, PyBUF_WRITE, order) 4017 m = get_contiguous(nd, PyBUF_WRITE, order) 4020 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'F') 4027 m = get_contiguous(nd, PyBUF_WRITE, order) 4030 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'C') 4037 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE,
|
/external/python/cpython2/Include/ |
D | object.h | 211 #define PyBUF_WRITE 0x200 macro
|
/external/python/cpython3/Include/ |
D | object.h | 230 #define PyBUF_WRITE 0x200 macro
|