marshal.h 827 B

12345678910111213141516171819202122232425262728293031
  1. /* Interface for marshal.c */
  2. #ifndef Py_MARSHAL_H
  3. #define Py_MARSHAL_H
  4. #ifndef Py_LIMITED_API
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
  9. Py_ssize_t);
  10. PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
  11. #define Py_MARSHAL_VERSION 4
  12. PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
  13. PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
  14. PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
  15. PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
  16. PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
  17. PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif /* Py_LIMITED_API */
  22. #endif /* !Py_MARSHAL_H */