Home
last modified time | relevance | path

Searched refs:ob_sval (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Objects/
Dbytesobject.c32 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1)
87 op->ob_sval[size] = '\0'; in _PyBytes_FromSize()
118 memcpy(op->ob_sval, str, size); in PyBytes_FromStringAndSize()
155 memcpy(op->ob_sval, str, size+1); in PyBytes_FromString()
1215 return ((PyBytesObject *)op)->ob_sval; in PyBytes_AsString()
1274 s = (const unsigned char*)op->ob_sval; in PyBytes_Repr()
1307 unsigned char c = op->ob_sval[i]; in PyBytes_Repr()
1440 op->ob_sval[size] = '\0'; in bytes_repeat()
1442 memset(op->ob_sval, a->ob_sval[0] , n); in bytes_repeat()
1447 memcpy(op->ob_sval, a->ob_sval, Py_SIZE(a)); in bytes_repeat()
[all …]
/external/python/cpython2/Objects/
Dbytesobject.c33 #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()
[all …]
Dstringobject.c32 #define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1)
95 Py_MEMCPY(op->ob_sval, str, size); in PyString_FromStringAndSize()
96 op->ob_sval[size] = '\0'; in PyString_FromStringAndSize()
149 Py_MEMCPY(op->ob_sval, str, size+1); in PyString_FromString()
801 return ((PyStringObject *)op) -> ob_sval; in PyString_AsString()
877 char *data = op->ob_sval; in string_print()
901 if (memchr(op->ob_sval, '\'', Py_SIZE(op)) && in string_print()
902 !memchr(op->ob_sval, '"', Py_SIZE(op))) in string_print()
912 c = op->ob_sval[i]; in string_print()
956 memchr(op->ob_sval, '\'', Py_SIZE(op)) && in PyString_Repr()
[all …]
Dbytearrayobject.c35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
/external/python/cpython3/Include/cpython/
Dbytesobject.h8 char ob_sval[1]; member
33 (((PyBytesObject *)(op))->ob_sval))
/external/python/cpython2/Include/
Dstringobject.h39 char ob_sval[1]; member
91 #define PyString_AS_STRING(op) (((PyStringObject *)(op))->ob_sval)
/external/python/cpython2/Misc/
Dgdbinit55 set $__p = (unsigned char *)((PyStringObject *)$__co->co_lnotab)->ob_sval
79 set $__fn = (char *)((PyStringObject *)co->co_filename)->ob_sval
80 set $__n = (char *)((PyStringObject *)co->co_name)->ob_sval
DHISTORY5781 the ob_sval member, so as a precaution the API_VERSION has been
5788 it also slowed things down a bit because ob_sval was no longer
/external/python/cpython3/Misc/
Dgdbinit61 set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
DHISTORY15360 "offsetof(PyBytesObject, ob_sval) + 1" when allocating memory for
23165 the ob_sval member, so as a precaution the API_VERSION has been
23172 it also slowed things down a bit because ob_sval was no longer
/external/python/cpython2/Mac/Modules/
DMacOS.c719 long off = (long)&(p->ob_sval[0]);
/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst1228 Replace ``sizeof(PyStringObject)`` with ``offsetof(PyStringObject, ob_sval)