Changeset 391 for python/trunk/Doc/c-api/objbuffer.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/objbuffer.rst
r2 r391 3 3 .. _abstract-buffer: 4 4 5 5 6 Old Buffer Protocol 6 7 =================== 7 8 8 9 9 This section describes the legacy buffer protocol, which has been introduced 10 10 in Python 1.6. It is still supported but deprecated in the Python 2.x series. 11 Python 3 .0introduces a new buffer protocol which fixes weaknesses and11 Python 3 introduces a new buffer protocol which fixes weaknesses and 12 12 shortcomings of the protocol, and has been backported to Python 2.6. See 13 13 :ref:`bufferobjects` for more information. 14 14 15 15 16 .. c function:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len)16 .. c:function:: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len) 17 17 18 18 Returns a pointer to a read-only memory location usable as character-based … … 25 25 26 26 .. versionchanged:: 2.5 27 This function used an :c type:`int *` type for *buffer_len*. This might27 This function used an :c:type:`int *` type for *buffer_len*. This might 28 28 require changes in your code for properly supporting 64-bit systems. 29 29 30 30 31 .. c function:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len)31 .. c:function:: int PyObject_AsReadBuffer(PyObject *obj, const void **buffer, Py_ssize_t *buffer_len) 32 32 33 33 Returns a pointer to a read-only memory location containing arbitrary data. … … 40 40 41 41 .. versionchanged:: 2.5 42 This function used an :c type:`int *` type for *buffer_len*. This might42 This function used an :c:type:`int *` type for *buffer_len*. This might 43 43 require changes in your code for properly supporting 64-bit systems. 44 44 45 45 46 .. c function:: int PyObject_CheckReadBuffer(PyObject *o)46 .. c:function:: int PyObject_CheckReadBuffer(PyObject *o) 47 47 48 48 Returns ``1`` if *o* supports the single-segment readable buffer interface. … … 52 52 53 53 54 .. c function:: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len)54 .. c:function:: int PyObject_AsWriteBuffer(PyObject *obj, void **buffer, Py_ssize_t *buffer_len) 55 55 56 56 Returns a pointer to a writeable memory location. The *obj* argument must … … 62 62 63 63 .. versionchanged:: 2.5 64 This function used an :c type:`int *` type for *buffer_len*. This might64 This function used an :c:type:`int *` type for *buffer_len*. This might 65 65 require changes in your code for properly supporting 64-bit systems. 66 66
Note:
See TracChangeset
for help on using the changeset viewer.