2023-05-04 07:59:46 -07:00
|
|
|
#ifndef Py_INTERNAL_MEMORYOBJECT_H
|
|
|
|
|
#define Py_INTERNAL_MEMORYOBJECT_H
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
|
#endif
|
|
|
|
|
|
2025-04-24 18:25:29 -06:00
|
|
|
struct _memoryobject_state {
|
|
|
|
|
PyTypeObject *XIBufferViewType;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern PyStatus _PyMemoryView_InitTypes(PyInterpreterState *);
|
|
|
|
|
extern void _PyMemoryView_FiniTypes(PyInterpreterState *);
|
|
|
|
|
|
|
|
|
|
// exported for _interpreters module
|
|
|
|
|
PyAPI_FUNC(PyTypeObject *) _PyMemoryView_GetXIBuffewViewType(void);
|
|
|
|
|
|
|
|
|
|
|
2023-08-24 19:07:54 +02:00
|
|
|
extern PyTypeObject _PyManagedBuffer_Type;
|
|
|
|
|
|
2023-05-04 07:59:46 -07:00
|
|
|
PyObject *
|
2023-05-08 09:52:41 -07:00
|
|
|
_PyMemoryView_FromBufferProc(PyObject *v, int flags,
|
|
|
|
|
getbufferproc bufferproc);
|
2023-05-04 07:59:46 -07:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#endif /* !Py_INTERNAL_MEMORYOBJECT_H */
|