Searched refs:PyByteArray_AS_STRING (Results 1 – 8 of 8) sorted by relevance
70 *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_STRING1168 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_find_internal()[all …]
47 #define PyByteArray_AS_STRING(self) \ macro
538 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()
80 .. c:function:: char* PyByteArray_AS_STRING(PyObject *bytearray)
1517 str = PyByteArray_AS_STRING(buffer); in getargs_es_hash()1541 str = PyByteArray_AS_STRING(buffer); in getargs_et_hash()
2570 data = PyByteArray_AS_STRING(password); in _pwinfo_set()
1530 ord = (long)((unsigned char)*PyByteArray_AS_STRING(obj)); in builtin_ord()
6940 could crash in many places because of the ``PyByteArray_AS_STRING()`` macro