Searched refs:orgsize (Results 1 – 2 of 2) sorted by relevance
166 Py_ssize_t orgpos, orgsize, incsize; in expand_encodebuffer() local170 orgsize = PyString_GET_SIZE(buf->outobj); in expand_encodebuffer()171 incsize = (esize < (orgsize >> 1) ? (orgsize >> 1) | 1 : esize); in expand_encodebuffer()173 if (orgsize > PY_SSIZE_T_MAX - incsize) { in expand_encodebuffer()178 if (_PyString_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()196 Py_ssize_t orgpos, orgsize; in expand_decodebuffer() local199 orgsize = PyUnicode_GET_SIZE(buf->outobj); in expand_decodebuffer()200 if (PyUnicode_Resize(&buf->outobj, orgsize + ( in expand_decodebuffer()201 esize < (orgsize >> 1) ? (orgsize >> 1) | 1 : esize)) == -1) in expand_decodebuffer()
159 Py_ssize_t orgpos, orgsize, incsize; in expand_encodebuffer() local163 orgsize = PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer()164 incsize = (esize < (orgsize >> 1) ? (orgsize >> 1) | 1 : esize); in expand_encodebuffer()166 if (orgsize > PY_SSIZE_T_MAX - incsize) { in expand_encodebuffer()171 if (_PyBytes_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()