File indexing completed on 2025-01-18 10:06:49
0001
0002
0003
0004 #ifndef Py_MARSHAL_H
0005 #define Py_MARSHAL_H
0006 #ifndef Py_LIMITED_API
0007
0008 #ifdef __cplusplus
0009 extern "C" {
0010 #endif
0011
0012 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
0013 Py_ssize_t);
0014 PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
0015
0016 #define Py_MARSHAL_VERSION 4
0017
0018 PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
0019 PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
0020 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
0021 PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
0022
0023 PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
0024 PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
0025
0026 #ifdef __cplusplus
0027 }
0028 #endif
0029
0030 #endif
0031 #endif