31 PyErr_SetString(PyExc_RuntimeError,
"Unable to create buffer from invalid address");
35 Long64_t cAddr = PyLong_AsLongLong(addr);
36 if (cAddr == -1 && PyErr_Occurred()) {
37 PyErr_SetString(PyExc_RuntimeError,
"Unable to create buffer: address is not a valid integer");
PyObject * CreateLowLevelView(const char **, Py_ssize_t *shape=nullptr)
PyObject * CreateBufferFromAddress(PyObject *self, PyObject *addr)
Get a buffer starting at a given address.