Searched refs:PyBytesObject_SIZE (Results 1 - 1 of 1) sorted by relevance

/external/python/cpython3/Objects/
H A Dbytesobject.c25 /* PyBytesObject_SIZE gives the basic size of a string; any memory allocation
26 for a string of length n should request PyBytesObject_SIZE + n bytes.
28 Using PyBytesObject_SIZE instead of sizeof(PyBytesObject) saves
31 #define PyBytesObject_SIZE (offsetof(PyBytesObject, ob_sval) + 1) macro
73 if ((size_t)size > (size_t)PY_SSIZE_T_MAX - PyBytesObject_SIZE) {
81 op = (PyBytesObject *)PyObject_Calloc(1, PyBytesObject_SIZE + size);
83 op = (PyBytesObject *)PyObject_Malloc(PyBytesObject_SIZE + size);
140 if (size > PY_SSIZE_T_MAX - PyBytesObject_SIZE) {
161 op = (PyBytesObject *)PyObject_MALLOC(PyBytesObject_SIZE + size);
1487 if (nbytes + PyBytesObject_SIZE <
[all...]

Completed in 88 milliseconds