Home
last modified time | relevance | path

Searched refs:PyByteArray_AS_STRING (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Objects/
Dbytearrayobject.c70 *ptr = (void *)PyByteArray_AS_STRING(self); in bytearray_buffer_getreadbuf()
82 *ptr = (void *)PyByteArray_AS_STRING(self); in bytearray_buffer_getwritebuf()
102 *ptr = PyByteArray_AS_STRING(self); in bytearray_buffer_getcharbuf()
115 ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer()
220 return PyByteArray_AS_STRING(self); in PyByteArray_AsString()
451 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript()
901 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray_init()
950 start = PyByteArray_AS_STRING(self); in bytearray_repr()
1119 #define STRINGLIB_STR PyByteArray_AS_STRING
1168 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_find_internal()
[all …]
/external/python/cpython2/Include/
Dbytearrayobject.h47 #define PyByteArray_AS_STRING(self) \ macro
/external/python/cpython2/Modules/_io/
Diobase.c538 memcpy(PyByteArray_AS_STRING(buffer) + old_size, in iobase_readline()
543 if (PyByteArray_AS_STRING(buffer)[PyByteArray_GET_SIZE(buffer) - 1] == '\n') in iobase_readline()
547 result = PyBytes_FromStringAndSize(PyByteArray_AS_STRING(buffer), in iobase_readline()
/external/python/cpython2/Doc/c-api/
Dbytearray.rst80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
/external/python/cpython2/Modules/
D_testcapimodule.c1517 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash()
1541 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
D_ssl.c2570 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
/external/python/cpython2/Python/
Dbltinmodule.c1530 ord = (long)((unsigned char)*PyByteArray_AS_STRING(obj)); in builtin_ord()
/external/python/cpython2/Misc/
DNEWS6940 could crash in many places because of the ``PyByteArray_AS_STRING()`` macro