Lines Matching refs:Py_SIZE
1279 return Py_SIZE(op); in PyBytes_Size()
1339 Py_ssize_t i, length = Py_SIZE(op); in PyBytes_Repr()
1428 return Py_SIZE(a); in bytes_length()
1491 if (n > 0 && Py_SIZE(a) > PY_SSIZE_T_MAX / n) { in bytes_repeat()
1496 size = Py_SIZE(a) * n; in bytes_repeat()
1497 if (size == Py_SIZE(a) && PyBytes_CheckExact(a)) { in bytes_repeat()
1513 if (Py_SIZE(a) == 1 && n > 0) { in bytes_repeat()
1519 memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a)); in bytes_repeat()
1520 i = Py_SIZE(a); in bytes_repeat()
1539 if (i < 0 || i >= Py_SIZE(a)) { in bytes_item()
1552 len = Py_SIZE(a); in bytes_compare_eq()
1553 if (Py_SIZE(b) != len) in bytes_compare_eq()
1628 len_a = Py_SIZE(a); in bytes_richcompare()
1629 len_b = Py_SIZE(b); in bytes_richcompare()
1661 a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a)); in bytes_hash()
1734 return PyBuffer_FillInfo(view, (PyObject*)self, (void *)self->ob_sval, Py_SIZE(self), in bytes_buffer_getbuffer()
2448 return Py_BuildValue("(y#)", v->ob_sval, Py_SIZE(v)); in bytes_getnewargs()
2662 bytes = PyBytes_FromStringAndSize(NULL, Py_SIZE(x)); \
2667 for (i = 0; i < Py_SIZE(x); i++) { \
2963 if (Py_SIZE(v) == newsize) { in _PyBytes_Resize()
2982 Py_SIZE(sv) = newsize; in _PyBytes_Resize()