• Home
  • Raw
  • Download

Lines Matching refs:PyByteArray_AS_STRING

51     ptr = (void *) PyByteArray_AS_STRING(obj);  in bytearray_getbuffer()
96 PyBuffer_ToContiguous(PyByteArray_AS_STRING(result), in _PyByteArray_FromBufferObject()
164 return PyByteArray_AS_STRING(self); in PyByteArray_AsString()
200 PyByteArray_AS_STRING(self)[size] = '\0'; /* Trailing null */ in PyByteArray_Resize()
226 memcpy(sval, PyByteArray_AS_STRING(self), in PyByteArray_Resize()
312 memcpy(PyByteArray_AS_STRING(self) + size, vo.buf, vo.len); in bytearray_iconcat()
333 buf = PyByteArray_AS_STRING(self); in bytearray_repeat()
362 buf = PyByteArray_AS_STRING(self); in bytearray_irepeat()
382 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_getitem()
401 return PyLong_FromLong((unsigned char)(PyByteArray_AS_STRING(self)[i])); in bytearray_subscript()
416 PyByteArray_AS_STRING(self) + start, slicelength); in bytearray_subscript()
419 char *source_buf = PyByteArray_AS_STRING(self); in bytearray_subscript()
427 result_buf = PyByteArray_AS_STRING(result); in bytearray_subscript()
449 char *buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
498 buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
510 buf = PyByteArray_AS_STRING(self); in bytearray_setslice_linear()
540 values = PyByteArray_FromStringAndSize(PyByteArray_AS_STRING(values), in bytearray_setslice()
596 PyByteArray_AS_STRING(self)[i] = ival; in bytearray_setitem()
605 buf = PyByteArray_AS_STRING(self); in bytearray_ass_subscript()
672 bytes = PyByteArray_AS_STRING(values); in bytearray_ass_subscript()
823 memset(PyByteArray_AS_STRING(self), 0, count); in bytearray___init___impl()
837 if (PyBuffer_ToContiguous(PyByteArray_AS_STRING(self), in bytearray___init___impl()
886 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray___init___impl()
890 PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value; in bytearray___init___impl()
939 start = PyByteArray_AS_STRING(self); in bytearray_repr()
956 bytes = PyByteArray_AS_STRING(self); in bytearray_repr()
1082 #define STRINGLIB_STR PyByteArray_AS_STRING
1102 return _Py_bytes_find(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_find()
1108 return _Py_bytes_count(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_count()
1136 return PyByteArray_FromStringAndSize(PyByteArray_AS_STRING((PyObject *)self), in bytearray_copy_impl()
1143 return _Py_bytes_index(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_index()
1149 return _Py_bytes_rfind(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rfind()
1155 return _Py_bytes_rindex(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rindex()
1161 return _Py_bytes_contains(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), arg); in bytearray_contains()
1167 return _Py_bytes_startswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_startswith()
1173 return _Py_bytes_endswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_endswith()
1193 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removeprefix_impl()
1225 const char *self_start = PyByteArray_AS_STRING(self); in bytearray_removesuffix_impl()
1302 output_start = output = PyByteArray_AS_STRING(result); in bytearray_translate_impl()
1303 input = PyByteArray_AS_STRING(input_obj); in bytearray_translate_impl()
1417 const char *s = PyByteArray_AS_STRING(self), *sub; in bytearray_split_impl()
1467 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_partition()
1469 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_partition()
1505 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_rpartition()
1507 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_rpartition()
1528 const char *s = PyByteArray_AS_STRING(self), *sub; in bytearray_rsplit_impl()
1564 head = PyByteArray_AS_STRING(self); in bytearray_reverse_impl()
1610 buf = PyByteArray_AS_STRING(self); in bytearray_insert_impl()
1649 PyByteArray_AS_STRING(self)[n] = item; in bytearray_append_impl()
1703 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1734 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1795 buf = PyByteArray_AS_STRING(self); in bytearray_pop_impl()
1819 char *buf = PyByteArray_AS_STRING(self); in bytearray_remove_impl()
1888 myptr = PyByteArray_AS_STRING(self); in bytearray_strip_impl()
1930 myptr = PyByteArray_AS_STRING(self); in bytearray_lstrip_impl()
1969 myptr = PyByteArray_AS_STRING(self); in bytearray_rstrip_impl()
2049 (PyObject*) self, PyByteArray_AS_STRING(self), in bytearray_splitlines_impl()
2105 char* argbuf = PyByteArray_AS_STRING(self); in bytearray_hex_impl()
2125 buf = PyByteArray_AS_STRING(self); in _common_reduce()
2293 return _PyBytes_FormatEx(PyByteArray_AS_STRING(v), PyByteArray_GET_SIZE(v), w, 1); in bytearray_mod()
2400 (unsigned char)PyByteArray_AS_STRING(seq)[it->it_index]); in bytearrayiter_next()