Lines Matching refs:PyByteArray_AS_STRING
59 ptr = (void *) PyByteArray_AS_STRING(obj); in bytearray_getbuffer()
104 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject()
172 return PyByteArray_AS_STRING(self); in PyByteArray_AsString()
208 PyByteArray_AS_STRING(self)[size] = '\0'; /* Trailing null */ in PyByteArray_Resize()
234 memcpy(sval, PyByteArray_AS_STRING(self), in PyByteArray_Resize()
320 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len); in bytearray_iconcat()
368 buf = PyByteArray_AS_STRING(self); in bytearray_irepeat()
388 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_getitem()
407 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_subscript()
422 PyByteArray_AS_STRING(self) + start, slicelength); in bytearray_subscript()
425 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript()
433 result_buf = PyByteArray_AS_STRING(result); in bytearray_subscript()
455 char *buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
504 buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
516 buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
546 values = PyByteArray_FromStringAndSize(PyByteArray_AS_STRING(values), in bytearray_setslice()
602 PyByteArray_AS_STRING(self)[i] = ival; in bytearray_setitem()
611 buf = PyByteArray_AS_STRING(self); in bytearray_ass_subscript()
678 bytes = PyByteArray_AS_STRING(values); in bytearray_ass_subscript()
827 memset(PyByteArray_AS_STRING(self), 0, count); in bytearray_init()
841 if (PyBuffer_ToContiguous(PyByteArray_AS_STRING(self), in bytearray_init()
890 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray_init()
894 PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value; in bytearray_init()
943 start = PyByteArray_AS_STRING(self); in bytearray_repr()
960 bytes = PyByteArray_AS_STRING(self); in bytearray_repr()
1092 #define STRINGLIB_STR PyByteArray_AS_STRING
1112 return _Py_bytes_find(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_find()
1118 return _Py_bytes_count(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_count()
1146 return PyByteArray_FromStringAndSize(PyByteArray_AS_STRING((PyObject *)self), in bytearray_copy_impl()
1153 return _Py_bytes_index(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_index()
1159 return _Py_bytes_rfind(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rfind()
1165 return _Py_bytes_rindex(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rindex()
1171 return _Py_bytes_contains(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), arg); in bytearray_contains()
1177 return _Py_bytes_startswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_startswith()
1183 return _Py_bytes_endswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_endswith()
1203 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removeprefix_impl()
1235 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removesuffix_impl()
1312 output_start = output = PyByteArray_AS_STRING(result); in bytearray_translate_impl()
1313 input = PyByteArray_AS_STRING(input_obj); in bytearray_translate_impl()
1427 const char *s = PyByteArray_AS_STRING(self), *sub; in bytearray_split_impl()
1477 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_partition()
1479 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_partition()
1515 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_rpartition()
1517 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_rpartition()
1538 const char *s = PyByteArray_AS_STRING(self), *sub; in bytearray_rsplit_impl()
1574 head = PyByteArray_AS_STRING(self); in bytearray_reverse_impl()
1620 buf = PyByteArray_AS_STRING(self); in bytearray_insert_impl()
1659 PyByteArray_AS_STRING(self)[n] = item; in bytearray_append_impl()
1713 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1744 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1803 buf = PyByteArray_AS_STRING(self); in bytearray_pop_impl()
1827 char *buf = PyByteArray_AS_STRING(self); in bytearray_remove_impl()
1896 myptr = PyByteArray_AS_STRING(self); in bytearray_strip_impl()
1938 myptr = PyByteArray_AS_STRING(self); in bytearray_lstrip_impl()
1977 myptr = PyByteArray_AS_STRING(self); in bytearray_rstrip_impl()
2057 (PyObject*) self, PyByteArray_AS_STRING(self), in bytearray_splitlines_impl()
2113 char* argbuf = PyByteArray_AS_STRING(self); in bytearray_hex_impl()
2133 buf = PyByteArray_AS_STRING(self); in _common_reduce()
2301 return _PyBytes_FormatEx(PyByteArray_AS_STRING(v), PyByteArray_GET_SIZE(v), w, 1); in bytearray_mod()
2407 (unsigned char)PyByteArray_AS_STRING(seq)[it->it_index]); in bytearrayiter_next()