Changeset 391 for python/trunk/Doc/c-api/marshal.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/c-api/marshal.rst
r2 r391 21 21 22 22 23 .. c function:: void PyMarshal_WriteLongToFile(long value, FILE *file, int version)23 .. c:function:: void PyMarshal_WriteLongToFile(long value, FILE *file, int version) 24 24 25 Marshal a :c type:`long` integer, *value*, to *file*. This will only write25 Marshal a :c:type:`long` integer, *value*, to *file*. This will only write 26 26 the least-significant 32 bits of *value*; regardless of the size of the 27 native :c type:`long` type.27 native :c:type:`long` type. 28 28 29 29 .. versionchanged:: 2.4 … … 31 31 32 32 33 .. c function:: void PyMarshal_WriteObjectToFile(PyObject *value, FILE *file, int version)33 .. c:function:: void PyMarshal_WriteObjectToFile(PyObject *value, FILE *file, int version) 34 34 35 35 Marshal a Python object, *value*, to *file*. … … 39 39 40 40 41 .. c function:: PyObject* PyMarshal_WriteObjectToString(PyObject *value, int version)41 .. c:function:: PyObject* PyMarshal_WriteObjectToString(PyObject *value, int version) 42 42 43 43 Return a string object containing the marshalled representation of *value*. … … 56 56 57 57 58 .. c function:: long PyMarshal_ReadLongFromFile(FILE *file)58 .. c:function:: long PyMarshal_ReadLongFromFile(FILE *file) 59 59 60 Return a C :c type:`long` from the data stream in a :ctype:`FILE\*` opened60 Return a C :c:type:`long` from the data stream in a :c:type:`FILE\*` opened 61 61 for reading. Only a 32-bit value can be read in using this function, 62 regardless of the native size of :c type:`long`.62 regardless of the native size of :c:type:`long`. 63 63 64 64 65 .. c function:: int PyMarshal_ReadShortFromFile(FILE *file)65 .. c:function:: int PyMarshal_ReadShortFromFile(FILE *file) 66 66 67 Return a C :c type:`short` from the data stream in a :ctype:`FILE\*` opened67 Return a C :c:type:`short` from the data stream in a :c:type:`FILE\*` opened 68 68 for reading. Only a 16-bit value can be read in using this function, 69 regardless of the native size of :c type:`short`.69 regardless of the native size of :c:type:`short`. 70 70 71 71 72 .. c function:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file)72 .. c:function:: PyObject* PyMarshal_ReadObjectFromFile(FILE *file) 73 73 74 Return a Python object from the data stream in a :c type:`FILE\*` opened for74 Return a Python object from the data stream in a :c:type:`FILE\*` opened for 75 75 reading. On error, sets the appropriate exception (:exc:`EOFError` or 76 76 :exc:`TypeError`) and returns *NULL*. 77 77 78 78 79 .. c function:: PyObject* PyMarshal_ReadLastObjectFromFile(FILE *file)79 .. c:function:: PyObject* PyMarshal_ReadLastObjectFromFile(FILE *file) 80 80 81 Return a Python object from the data stream in a :c type:`FILE\*` opened for82 reading. Unlike :c func:`PyMarshal_ReadObjectFromFile`, this function81 Return a Python object from the data stream in a :c:type:`FILE\*` opened for 82 reading. Unlike :c:func:`PyMarshal_ReadObjectFromFile`, this function 83 83 assumes that no further objects will be read from the file, allowing it to 84 84 aggressively load file data into memory so that the de-serialization can … … 89 89 90 90 91 .. c function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len)91 .. c:function:: PyObject* PyMarshal_ReadObjectFromString(char *string, Py_ssize_t len) 92 92 93 93 Return a Python object from the data stream in a character buffer … … 97 97 98 98 .. versionchanged:: 2.5 99 This function used an :c type:`int` type for *len*. This might require99 This function used an :c:type:`int` type for *len*. This might require 100 100 changes in your code for properly supporting 64-bit systems.
Note:
See TracChangeset
for help on using the changeset viewer.