Lines Matching refs:Py_SIZE

55     (void)PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags);
185 if (requested_size == Py_SIZE(self)) {
229 Py_MIN((size_t)requested_size, (size_t)Py_SIZE(self)));
290 return Py_SIZE(self);
305 size = Py_SIZE(self);
325 const Py_ssize_t mysize = Py_SIZE(self);
347 const Py_ssize_t mysize = Py_SIZE(self);
364 if (i < 0 || i >= Py_SIZE(self)) {
383 if (i < 0 || i >= Py_SIZE(self)) {
462 Py_SIZE(self) - hi);
465 Py_SIZE(self) + growth) < 0) {
481 Py_SET_SIZE(self, Py_SIZE(self) + growth);
487 if (Py_SIZE(self) > (Py_ssize_t)PY_SSIZE_T_MAX - growth) {
493 Py_SIZE(self) + growth) < 0) {
505 Py_SIZE(self) - lo - bytes_len);
554 if (hi > Py_SIZE(self))
555 hi = Py_SIZE(self);
575 i += Py_SIZE(self);
578 if (i < 0 || i >= Py_SIZE(self)) {
618 if (i < 0 || i >= Py_SIZE(self)) {
673 needed = Py_SIZE(values);
760 if (Py_SIZE(self) != 0) {
858 if (Py_SIZE(self) != 0) {
909 if (Py_SIZE(self) + 1 < self->ob_alloc) {
910 Py_SET_SIZE(self, Py_SIZE(self) + 1);
911 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0';
913 else if (PyByteArray_Resize((PyObject *)self, Py_SIZE(self)+1) < 0)
915 PyByteArray_AS_STRING(self)[Py_SIZE(self)-1] = value;
936 Py_ssize_t length = Py_SIZE(self);
1587 Py_ssize_t i, j, n = Py_SIZE(self);
1626 Py_ssize_t n = Py_SIZE(self);
1665 Py_ssize_t n = Py_SIZE(self);
1701 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), iterable_of_ints) == -1)
1776 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1) {
1804 Py_ssize_t n = Py_SIZE(self);
1813 index += Py_SIZE(self);
1814 if (index < 0 || index >= Py_SIZE(self)) {
1844 Py_ssize_t where, n = Py_SIZE(self);
1885 mysize = Py_SIZE(self);
2102 if (!Py_SIZE(self)) {
2108 PyObject *latin1 = PyUnicode_DecodeLatin1(buf, Py_SIZE(self), NULL);
2113 return Py_BuildValue("(O(y#)N)", Py_TYPE(self), buf, Py_SIZE(self), state);