1 | use super::{PyObject, Py_ssize_t}; |
2 | use std::os::raw::{c_char, c_int}; |
3 | |
4 | // skipped Py_MARSHAL_VERSION |
5 | // skipped PyMarshal_WriteLongToFile |
6 | // skipped PyMarshal_WriteObjectToFile |
7 | |
8 | extern "C" { |
9 | #[cfg_attr (PyPy, link_name = "PyPyMarshal_WriteObjectToString" )] |
10 | pub fn PyMarshal_WriteObjectToString(object: *mut PyObject, version: c_int) -> *mut PyObject; |
11 | |
12 | // skipped non-limited PyMarshal_ReadLongFromFile |
13 | // skipped non-limited PyMarshal_ReadShortFromFile |
14 | // skipped non-limited PyMarshal_ReadObjectFromFile |
15 | // skipped non-limited PyMarshal_ReadLastObjectFromFile |
16 | |
17 | #[cfg_attr (PyPy, link_name = "PyPyMarshal_ReadObjectFromString" )] |
18 | pub fn PyMarshal_ReadObjectFromString(data: *const c_char, len: Py_ssize_t) -> *mut PyObject; |
19 | } |
20 | |