Home
last modified time | relevance | path

Searched refs:PyBUF_WRITE (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Doc/c-api/
Dmemoryview.rst26 *flags* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`.
/external/python/cpython2/Objects/
Dmemoryobject.c261 case PyBUF_WRITE: in PyMemoryView_GetContiguous()
279 if (buffertype == PyBUF_WRITE) { in PyMemoryView_GetContiguous()
/external/python/cpython3/Objects/
Dmemoryobject.c742 assert(flags == PyBUF_READ || flags == PyBUF_WRITE); in PyMemoryView_FromMemory()
748 readonly = (flags == PyBUF_WRITE) ? 0 : 1; in PyMemoryView_FromMemory()
932 assert(buffertype == PyBUF_READ || buffertype == PyBUF_WRITE); in PyMemoryView_GetContiguous()
940 if (buffertype == PyBUF_WRITE && view->readonly) { in PyMemoryView_GetContiguous()
950 if (buffertype == PyBUF_WRITE) { in PyMemoryView_GetContiguous()
1990 x->mview = PyMemoryView_FromMemory(x->item, itemsize, PyBUF_WRITE); in struct_get_unpacker()
/external/python/cpython3/Include/cpython/
Dobject.h107 #define PyBUF_WRITE 0x200 macro
/external/python/cpython3/Modules/
D_testbuffer.c416 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_WRITE); in pack_single()
714 mview = PyMemoryView_FromMemory(item, base->itemsize, PyBUF_WRITE); in ndarray_as_list()
2413 if (type != PyBUF_READ && type != PyBUF_WRITE) { in get_contiguous()
2888 PyModule_AddIntMacro(m, PyBUF_WRITE); in PyInit__testbuffer()
D_pickle.c1413 PyObject *buf_obj = PyMemoryView_FromMemory(buf, n, PyBUF_WRITE); in _Unpickler_ReadInto()
/external/python/cpython3/Lib/test/
Dtest_buffer.py3968 self.assertRaises(BufferError, get_contiguous, b'x', PyBUF_WRITE, 'C')
3972 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'A')
3991 m = get_contiguous(nd, PyBUF_WRITE, order)
4016 m = get_contiguous(nd, PyBUF_WRITE, order)
4022 m = get_contiguous(nd, PyBUF_WRITE, order)
4048 m = get_contiguous(nd, PyBUF_WRITE, order)
4051 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'F')
4058 m = get_contiguous(nd, PyBUF_WRITE, order)
4061 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE, 'C')
4068 self.assertRaises(BufferError, get_contiguous, nd, PyBUF_WRITE,
/external/python/cpython2/Include/
Dobject.h211 #define PyBUF_WRITE 0x200 macro
/external/python/pybind11/include/pybind11/
Dpytypes.h1497 (readonly) ? PyBUF_READ : PyBUF_WRITE);