Lines Matching refs:Py_SIZE
53 (void)PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags); in bytearray_getbuffer()
183 if (requested_size == Py_SIZE(self)) { in PyByteArray_Resize()
227 Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self))); in PyByteArray_Resize()
288 return Py_SIZE(self); in bytearray_length()
303 size = Py_SIZE(self); in bytearray_iconcat()
328 mysize = Py_SIZE(self); in bytearray_repeat()
355 mysize = Py_SIZE(self); in bytearray_irepeat()
378 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_getitem()
397 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_subscript()
476 Py_SIZE(self) - hi); in bytearray_setslice_linear()
479 Py_SIZE(self) + growth) < 0) { in bytearray_setslice_linear()
495 Py_SET_SIZE(self, Py_SIZE(self) + growth); in bytearray_setslice_linear()
501 if (Py_SIZE(self) > (Py_ssize_t)PY_SSIZE_T_MAX - growth) { in bytearray_setslice_linear()
507 Py_SIZE(self) + growth) < 0) { in bytearray_setslice_linear()
519 Py_SIZE(self) - lo - bytes_len); in bytearray_setslice_linear()
568 if (hi > Py_SIZE(self)) in bytearray_setslice()
569 hi = Py_SIZE(self); in bytearray_setslice()
583 i += Py_SIZE(self); in bytearray_setitem()
585 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_setitem()
616 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_ass_subscript()
673 needed = Py_SIZE(values); in bytearray_ass_subscript()
760 if (Py_SIZE(self) != 0) { in bytearray___init___impl()
884 if (Py_SIZE(self) + 1 < self->ob_alloc) { in bytearray___init___impl()
885 Py_SET_SIZE(self, Py_SIZE(self) + 1); in bytearray___init___impl()
886 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray___init___impl()
888 else if (PyByteArray_Resize((PyObject *)self, Py_SIZE(self)+1) < 0) in bytearray___init___impl()
890 PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value; in bytearray___init___impl()
911 Py_ssize_t length = Py_SIZE(self); in bytearray_repr()
1561 Py_ssize_t i, j, n = Py_SIZE(self); in bytearray_reverse_impl()
1600 Py_ssize_t n = Py_SIZE(self); in bytearray_insert_impl()
1639 Py_ssize_t n = Py_SIZE(self); in bytearray_append_impl()
1675 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), iterable_of_ints) == -1) in bytearray_extend()
1750 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1) { in bytearray_extend()
1778 Py_ssize_t n = Py_SIZE(self); in bytearray_pop_impl()
1787 index += Py_SIZE(self); in bytearray_pop_impl()
1788 if (index < 0 || index >= Py_SIZE(self)) { in bytearray_pop_impl()
1818 Py_ssize_t where, n = Py_SIZE(self); in bytearray_remove_impl()
1889 mysize = Py_SIZE(self); in bytearray_strip_impl()
1931 mysize = Py_SIZE(self); in bytearray_lstrip_impl()
1970 mysize = Py_SIZE(self); in bytearray_rstrip_impl()
2129 if (Py_SIZE(self)) in _common_reduce()
2130 latin1 = PyUnicode_DecodeLatin1(buf, Py_SIZE(self), NULL); in _common_reduce()
2137 if (Py_SIZE(self)) { in _common_reduce()
2138 return Py_BuildValue("(O(y#)N)", Py_TYPE(self), buf, Py_SIZE(self), dict); in _common_reduce()