Searched refs:PyBUF_READ (Results 1 – 8 of 8) 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/cpython3/Lib/test/ |
D | test_buffer.py | 879 contig = get_contiguous(result, PyBUF_READ, order) 1266 self.assertRaises(TypeError, get_contiguous, nd, PyBUF_READ, 961) 1267 self.assertRaises(UnicodeEncodeError, get_contiguous, nd, PyBUF_READ, 1269 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'Z') 2475 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'C') 2476 self.assertRaises(ValueError, get_contiguous, nd, PyBUF_READ, 'F') 2477 self.assertRaises(ValueError, get_contiguous, nd[::-1], PyBUF_READ, 'C') 3965 self.assertRaises(TypeError, get_contiguous, {}, PyBUF_READ, 'F') 3977 m = get_contiguous(nd, PyBUF_READ, order) 3984 m = get_contiguous(nd, PyBUF_READ, order) [all …]
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 106 #define PyBUF_READ 0x100 macro
|
/external/python/cpython2/Include/ |
D | object.h | 210 #define PyBUF_READ 0x100 macro
|
/external/python/cpython3/Modules/ |
D | _testbuffer.c | 585 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_READ); in unpack_single() 2413 if (type != PyBUF_READ && type != PyBUF_WRITE) { in get_contiguous() 2887 PyModule_AddIntMacro(m, PyBUF_READ); in PyInit__testbuffer()
|
/external/python/cpython3/Objects/ |
D | memoryobject.c | 742 assert(flags == PyBUF_READ || flags == PyBUF_WRITE); in PyMemoryView_FromMemory() 932 assert(buffertype == PyBUF_READ || buffertype == PyBUF_WRITE); in PyMemoryView_GetContiguous()
|
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
D | PythonDataObjects.cpp | 1305 const_cast<char *>((const char *)buf), num_bytes, PyBUF_READ); in Write()
|
/external/python/pybind11/include/pybind11/ |
D | pytypes.h | 1497 (readonly) ? PyBUF_READ : PyBUF_WRITE);
|