Home
last modified time | relevance | path

Searched refs:PyBUF_READ (Results 1 – 8 of 8) 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/cpython3/Lib/test/
Dtest_buffer.py879 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/
Dobject.h106 #define PyBUF_READ 0x100 macro
/external/python/cpython2/Include/
Dobject.h210 #define PyBUF_READ 0x100 macro
/external/python/cpython3/Modules/
D_testbuffer.c585 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/
Dmemoryobject.c742 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/
DPythonDataObjects.cpp1305 const_cast<char *>((const char *)buf), num_bytes, PyBUF_READ); in Write()
/external/python/pybind11/include/pybind11/
Dpytypes.h1497 (readonly) ? PyBUF_READ : PyBUF_WRITE);