Lines Matching refs:bytearray_obj
1668 PyObject *it, *item, *bytearray_obj; in bytearray_extend() local
1698 bytearray_obj = PyByteArray_FromStringAndSize(NULL, buf_size); in bytearray_extend()
1699 if (bytearray_obj == NULL) { in bytearray_extend()
1703 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1709 Py_DECREF(bytearray_obj); in bytearray_extend()
1719 Py_DECREF(bytearray_obj); in bytearray_extend()
1727 if (PyByteArray_Resize((PyObject *)bytearray_obj, buf_size) < 0) { in bytearray_extend()
1729 Py_DECREF(bytearray_obj); in bytearray_extend()
1734 buf = PyByteArray_AS_STRING(bytearray_obj); in bytearray_extend()
1740 Py_DECREF(bytearray_obj); in bytearray_extend()
1745 if (PyByteArray_Resize((PyObject *)bytearray_obj, len) < 0) { in bytearray_extend()
1746 Py_DECREF(bytearray_obj); in bytearray_extend()
1750 if (bytearray_setslice(self, Py_SIZE(self), Py_SIZE(self), bytearray_obj) == -1) { in bytearray_extend()
1751 Py_DECREF(bytearray_obj); in bytearray_extend()
1754 Py_DECREF(bytearray_obj); in bytearray_extend()