Lines Matching refs:PyByteArray_GET_SIZE
157 return PyByteArray_GET_SIZE(self); in PyByteArray_Size()
381 i += PyByteArray_GET_SIZE(self); in bytearray_subscript()
395 slicelength = PySlice_AdjustIndices(PyByteArray_GET_SIZE(self), in bytearray_subscript()
527 PyByteArray_GET_SIZE(values)); in bytearray_setslice()
615 i += PyByteArray_GET_SIZE(self); in bytearray_ass_subscript()
640 slicelen = PySlice_AdjustIndices(PyByteArray_GET_SIZE(self), &start, in bytearray_ass_subscript()
704 if (cur + step >= (size_t)PyByteArray_GET_SIZE(self)) in bytearray_ass_subscript()
705 lim = PyByteArray_GET_SIZE(self) - cur - 1; in bytearray_ass_subscript()
712 if (cur < (size_t)PyByteArray_GET_SIZE(self)) { in bytearray_ass_subscript()
715 PyByteArray_GET_SIZE(self) - cur); in bytearray_ass_subscript()
718 PyByteArray_GET_SIZE(self) - slicelen) < 0) in bytearray_ass_subscript()
1107 #define STRINGLIB_LEN PyByteArray_GET_SIZE
1128 return _Py_bytes_find(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_find()
1134 return _Py_bytes_count(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_count()
1163 PyByteArray_GET_SIZE(self)); in bytearray_copy_impl()
1169 return _Py_bytes_index(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_index()
1175 return _Py_bytes_rfind(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rfind()
1181 return _Py_bytes_rindex(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_rindex()
1187 return _Py_bytes_contains(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), arg); in bytearray_contains()
1193 return _Py_bytes_startswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_startswith()
1199 return _Py_bytes_endswith(PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), args); in bytearray_endswith()
1220 Py_ssize_t self_len = PyByteArray_GET_SIZE(self); in bytearray_removeprefix_impl()
1252 Py_ssize_t self_len = PyByteArray_GET_SIZE(self); in bytearray_removesuffix_impl()
1324 inlen = PyByteArray_GET_SIZE(input_obj); in bytearray_translate_impl()
1442 Py_ssize_t len = PyByteArray_GET_SIZE(self), n; in bytearray_split_impl()
1493 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_partition()
1495 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_partition()
1531 PyByteArray_AS_STRING(self), PyByteArray_GET_SIZE(self), in bytearray_rpartition()
1533 PyByteArray_AS_STRING(bytesep), PyByteArray_GET_SIZE(bytesep) in bytearray_rpartition()
1553 Py_ssize_t len = PyByteArray_GET_SIZE(self), n; in bytearray_rsplit_impl()
2031 PyByteArray_GET_SIZE(self), keepends in bytearray_splitlines_impl()
2087 Py_ssize_t arglen = PyByteArray_GET_SIZE(self); in bytearray_hex_impl()
2264 return _PyBytes_FormatEx(PyByteArray_AS_STRING(v), PyByteArray_GET_SIZE(v), w, 1); in bytearray_mod()
2368 if (it->it_index < PyByteArray_GET_SIZE(seq)) { in bytearrayiter_next()
2383 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint()
2419 else if (index > PyByteArray_GET_SIZE(it->it_seq)) in bytearrayiter_setstate()
2420 index = PyByteArray_GET_SIZE(it->it_seq); /* iterator exhausted */ in bytearrayiter_setstate()