1 /**
2   Mirror _marshal.h
3   */
4 module deimos.python.marshal;
5 
6 import core.stdc.stdio;
7 import deimos.python.pyport;
8 import deimos.python.object;
9 
10 extern(C):
11 // Python-header-file: Include/marshal.h:
12 
13 version(Python_2_5_Or_Later){
14     /// _
15     enum Py_MARSHAL_VERSION = 2;
16 } else version(Python_2_4_Or_Later){
17     /// _
18     enum Py_MARSHAL_VERSION = 1;
19 }
20 
21 /// _
22 void PyMarshal_WriteLongToFile(C_long, FILE*, int);
23 /// _
24 void PyMarshal_WriteObjectToFile(PyObject*, FILE*, int);
25 /// _
26 PyObject* PyMarshal_WriteObjectToString(PyObject*, int);
27 
28 /// _
29 C_long PyMarshal_ReadLongFromFile(FILE*);
30 /// _
31 int PyMarshal_ReadShortFromFile(FILE*);
32 /// _
33 PyObject* PyMarshal_ReadObjectFromFile(FILE*);
34 /// _
35 PyObject* PyMarshal_ReadLastObjectFromFile(FILE*);
36 /// _
37 PyObject* PyMarshal_ReadObjectFromString(char*, Py_ssize_t);
38 
39