Changeset 391 for python/trunk/Doc/c-api/bytearray.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/bytearray.rst
r2 r391 11 11 12 12 13 .. c type:: PyByteArrayObject13 .. c:type:: PyByteArrayObject 14 14 15 This subtype of :c type:`PyObject` represents a Python bytearray object.15 This subtype of :c:type:`PyObject` represents a Python bytearray object. 16 16 17 17 18 .. c var:: PyTypeObject PyByteArray_Type18 .. c:var:: PyTypeObject PyByteArray_Type 19 19 20 This instance of :c type:`PyTypeObject` represents the Python bytearray type;20 This instance of :c:type:`PyTypeObject` represents the Python bytearray type; 21 21 it is the same object as ``bytearray`` in the Python layer. 22 22 … … 24 24 ^^^^^^^^^^^^^^^^^ 25 25 26 .. c function:: int PyByteArray_Check(PyObject *o)26 .. c:function:: int PyByteArray_Check(PyObject *o) 27 27 28 28 Return true if the object *o* is a bytearray object or an instance of a … … 30 30 31 31 32 .. c function:: int PyByteArray_CheckExact(PyObject *o)32 .. c:function:: int PyByteArray_CheckExact(PyObject *o) 33 33 34 34 Return true if the object *o* is a bytearray object, but not an instance of a … … 39 39 ^^^^^^^^^^^^^^^^^^^^ 40 40 41 .. c function:: PyObject* PyByteArray_FromObject(PyObject *o)41 .. c:function:: PyObject* PyByteArray_FromObject(PyObject *o) 42 42 43 43 Return a new bytearray object from any object, *o*, that implements the … … 47 47 48 48 49 .. c function:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len)49 .. c:function:: PyObject* PyByteArray_FromStringAndSize(const char *string, Py_ssize_t len) 50 50 51 51 Create a new bytearray object from *string* and its length, *len*. On … … 53 53 54 54 55 .. c function:: PyObject* PyByteArray_Concat(PyObject *a, PyObject *b)55 .. c:function:: PyObject* PyByteArray_Concat(PyObject *a, PyObject *b) 56 56 57 57 Concat bytearrays *a* and *b* and return a new bytearray with the result. 58 58 59 59 60 .. c function:: Py_ssize_t PyByteArray_Size(PyObject *bytearray)60 .. c:function:: Py_ssize_t PyByteArray_Size(PyObject *bytearray) 61 61 62 62 Return the size of *bytearray* after checking for a *NULL* pointer. 63 63 64 64 65 .. c function:: char* PyByteArray_AsString(PyObject *bytearray)65 .. c:function:: char* PyByteArray_AsString(PyObject *bytearray) 66 66 67 67 Return the contents of *bytearray* as a char array after checking for a … … 69 69 70 70 71 .. c function:: int PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len)71 .. c:function:: int PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len) 72 72 73 73 Resize the internal buffer of *bytearray* to *len*. … … 78 78 These macros trade safety for speed and they don't check pointers. 79 79 80 .. c function:: char* PyByteArray_AS_STRING(PyObject *bytearray)80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray) 81 81 82 Macro version of :c func:`PyByteArray_AsString`.82 Macro version of :c:func:`PyByteArray_AsString`. 83 83 84 84 85 .. c function:: Py_ssize_t PyByteArray_GET_SIZE(PyObject *bytearray)85 .. c:function:: Py_ssize_t PyByteArray_GET_SIZE(PyObject *bytearray) 86 86 87 Macro version of :c func:`PyByteArray_Size`.87 Macro version of :c:func:`PyByteArray_Size`.
Note:
See TracChangeset
for help on using the changeset viewer.