Home
last modified time | relevance | path

Searched refs:ob_alloc (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Include/cpython/
Dbytearrayobject.h8 Py_ssize_t ob_alloc; /* How many bytes allocated in ob_bytes */ member
/external/python/cpython2/Include/
Dbytearrayobject.h26 Py_ssize_t ob_alloc; /* How many bytes allocated */ member
/external/python/cpython2/Objects/
Dbytearrayobject.c219 new->ob_alloc = alloc; in PyByteArray_FromStringAndSize()
247 Py_ssize_t alloc = ((PyByteArrayObject *)self)->ob_alloc; in PyByteArray_Resize()
287 ((PyByteArrayObject *)self)->ob_alloc = alloc; in PyByteArray_Resize()
355 if (size < self->ob_alloc) { in bytearray_iconcat()
407 if (size < self->ob_alloc) { in bytearray_irepeat()
920 if (Py_SIZE(self) + 1 < self->ob_alloc) { in bytearray_init()
2602 return PyInt_FromSsize_t(self->ob_alloc); in bytearray_alloc()
2802 res = _PyObject_SIZE(Py_TYPE(self)) + self->ob_alloc * sizeof(char); in bytearray_sizeof()
/external/python/cpython3/Objects/
Dbytearrayobject.c150 new->ob_alloc = alloc; in PyByteArray_FromStringAndSize()
182 size_t alloc = (size_t) obj->ob_alloc; in PyByteArray_Resize()
248 obj->ob_alloc = alloc; in PyByteArray_Resize()
888 if (Py_SIZE(self) + 1 < self->ob_alloc) { in bytearray_init()
2018 return PyLong_FromSsize_t(self->ob_alloc); in bytearray_alloc()
2195 res = _PyObject_SIZE(Py_TYPE(self)) + self->ob_alloc * sizeof(char); in bytearray_sizeof_impl()