File indexing completed on 2025-01-18 10:06:49
0001
0002
0003 #ifndef Py_MEMORYOBJECT_H
0004 #define Py_MEMORYOBJECT_H
0005 #ifdef __cplusplus
0006 extern "C" {
0007 #endif
0008
0009 PyAPI_DATA(PyTypeObject) PyMemoryView_Type;
0010
0011 #define PyMemoryView_Check(op) Py_IS_TYPE((op), &PyMemoryView_Type)
0012
0013 PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);
0014 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
0015 PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(char *mem, Py_ssize_t size,
0016 int flags);
0017 #endif
0018 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030b0000
0019 PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(const Py_buffer *info);
0020 #endif
0021 PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base,
0022 int buffertype,
0023 char order);
0024
0025 #ifndef Py_LIMITED_API
0026 # define Py_CPYTHON_MEMORYOBJECT_H
0027 # include "cpython/memoryobject.h"
0028 # undef Py_CPYTHON_MEMORYOBJECT_H
0029 #endif
0030
0031 #ifdef __cplusplus
0032 }
0033 #endif
0034 #endif