PageRenderTime 433ms CodeModel.GetById 181ms app.highlight 2ms RepoModel.GetById 142ms app.codeStats 0ms

/Include/marshal.h

http://unladen-swallow.googlecode.com/
C++ Header | 25 lines | 18 code | 6 blank | 1 comment | 0 complexity | f1f63b19d798c816a39f74d0df42ddf0 MD5 | raw file
 1
 2/* Interface for marshal.c */
 3
 4#ifndef Py_MARSHAL_H
 5#define Py_MARSHAL_H
 6#ifdef __cplusplus
 7extern "C" {
 8#endif
 9
10#define Py_MARSHAL_VERSION 2
11
12PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
13PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
14PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
15
16PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
17PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
18PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
19PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
20PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t);
21
22#ifdef __cplusplus
23}
24#endif
25#endif /* !Py_MARSHAL_H */