• Home
  • Raw
  • Download

Lines Matching refs:Py_SIZE

31         if (Py_SIZE(arg) != 1) {  in _getbytevalue()
71 return Py_SIZE(self); in bytearray_buffer_getreadbuf()
83 return Py_SIZE(self); in bytearray_buffer_getwritebuf()
90 *lenp = Py_SIZE(self); in bytearray_buffer_getsegcount()
103 return Py_SIZE(self); in bytearray_buffer_getcharbuf()
116 ret = PyBuffer_FillInfo(view, (PyObject*)obj, ptr, Py_SIZE(obj), 0, flags); in bytearray_getbuffer()
218 Py_SIZE(new) = size; in PyByteArray_FromStringAndSize()
253 if (size == Py_SIZE(self)) { in PyByteArray_Resize()
266 Py_SIZE(self) = size; in PyByteArray_Resize()
286 Py_SIZE(self) = size; in PyByteArray_Resize()
333 return Py_SIZE(self); in bytearray_length()
349 mysize = Py_SIZE(self); in bytearray_iconcat()
356 Py_SIZE(self) = size; in bytearray_iconcat()
357 self->ob_bytes[Py_SIZE(self)] = '\0'; /* Trailing null byte */ in bytearray_iconcat()
378 mysize = Py_SIZE(self); in bytearray_repeat()
403 mysize = Py_SIZE(self); in bytearray_irepeat()
408 Py_SIZE(self) = size; in bytearray_irepeat()
409 self->ob_bytes[Py_SIZE(self)] = '\0'; /* Trailing null byte */ in bytearray_irepeat()
430 i += Py_SIZE(self); in bytearray_getitem()
431 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_getitem()
450 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_subscript()
534 if (hi > Py_SIZE(self)) in bytearray_setslice()
535 hi = Py_SIZE(self); in bytearray_setslice()
554 Py_SIZE(self) - hi); in bytearray_setslice()
558 Py_SIZE(self) + needed - avail) < 0) { in bytearray_setslice()
570 Py_SIZE(self) - lo - needed); in bytearray_setslice()
590 i += Py_SIZE(self); in bytearray_setitem()
592 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_setitem()
622 if (i < 0 || i >= Py_SIZE(self)) { in bytearray_ass_subscript()
677 needed = Py_SIZE(values); in bytearray_ass_subscript()
695 Py_SIZE(self) - stop); in bytearray_ass_subscript()
698 Py_SIZE(self) + needed - slicelen) < 0) in bytearray_ass_subscript()
708 Py_SIZE(self) - start - needed); in bytearray_ass_subscript()
782 if (Py_SIZE(self) != 0) { in bytearray_init()
920 if (Py_SIZE(self) + 1 < self->ob_alloc) { in bytearray_init()
921 Py_SIZE(self)++; in bytearray_init()
922 PyByteArray_AS_STRING(self)[Py_SIZE(self)] = '\0'; in bytearray_init()
924 else if (PyByteArray_Resize((PyObject *)self, Py_SIZE(self)+1) < 0) in bytearray_init()
926 self->ob_bytes[Py_SIZE(self)-1] = value; in bytearray_init()
947 Py_ssize_t length = Py_SIZE(self); in bytearray_repr()
1036 return PyBytes_FromStringAndSize(((PyByteArrayObject*)op)->ob_bytes, Py_SIZE(op)); in bytearray_str()
1318 pos = stringlib_find(PyByteArray_AS_STRING(self), Py_SIZE(self), in bytearray_contains()
1328 return memchr(PyByteArray_AS_STRING(self), ival, Py_SIZE(self)) != NULL; in bytearray_contains()
2211 Py_ssize_t i, j, n = Py_SIZE(self); in bytearray_reverse()
2234 Py_ssize_t where, n = Py_SIZE(self); in bytearray_insert()
2270 Py_ssize_t n = Py_SIZE(self); in bytearray_append()
2302 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), arg) == -1) in bytearray_extend()
2366 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1) { in bytearray_extend()
2384 Py_ssize_t where = -1, n = Py_SIZE(self); in bytearray_pop()
2395 where += Py_SIZE(self); in bytearray_pop()
2396 if (where < 0 || where >= Py_SIZE(self)) { in bytearray_pop()
2419 Py_ssize_t n = Py_SIZE(self); in bytearray_remove()
2487 mysize = Py_SIZE(self); in bytearray_strip()
2523 mysize = Py_SIZE(self); in bytearray_lstrip()
2556 mysize = Py_SIZE(self); in bytearray_rstrip()
2614 Py_ssize_t mysize = Py_SIZE(self); in bytearray_join()
2642 totalsize += Py_SIZE(obj); in bytearray_join()
2656 Py_ssize_t size = Py_SIZE(obj); in bytearray_join()
2772 Py_SIZE(self), NULL); in bytearray_reduce()
2774 latin1 = PyString_FromStringAndSize(self->ob_bytes, Py_SIZE(self)); in bytearray_reduce()