Lines Matching refs:ob_sval
33 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
91 op->ob_sval[size] = '\0'; in _PyBytes_FromSize()
125 memcpy(op->ob_sval, str, size); in PyBytes_FromStringAndSize()
168 memcpy(op->ob_sval, str, size+1); in PyBytes_FromString()
1290 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString()
1347 s = (unsigned char*)op->ob_sval; in PyBytes_Repr()
1380 unsigned char c = op->ob_sval[i]; in PyBytes_Repr()
1512 op->ob_sval[size] = '\0'; in bytes_repeat()
1514 memset(op->ob_sval, a->ob_sval[0] , n); in bytes_repeat()
1519 memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a)); in bytes_repeat()
1524 memcpy(op->ob_sval+i, op->ob_sval, j); in bytes_repeat()
1543 return PyLong_FromLong((unsigned char)a->ob_sval[i]); in bytes_item()
1556 if (a->ob_sval[0] != b->ob_sval[0]) in bytes_compare_eq()
1559 cmp = memcmp(a->ob_sval, b->ob_sval, len); in bytes_compare_eq()
1632 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in bytes_richcompare()
1634 c = memcmp(a->ob_sval, b->ob_sval, min_len); in bytes_richcompare()
1661 a->ob_shash = _Py_HashBytes(a->ob_sval, Py_SIZE(a)); in bytes_hash()
1680 return PyLong_FromLong((unsigned char)self->ob_sval[i]); in bytes_subscript()
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()
2642 if (PyBuffer_ToContiguous(((PyBytesObject *)new)->ob_sval, in _PyBytes_FromBuffer()
2665 str = ((PyBytesObject *)bytes)->ob_sval; \
2983 sv->ob_sval[newsize] = '\0'; in _PyBytes_Resize()
3039 (unsigned char)seq->ob_sval[it->it_index]); in striter_next()