Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c15 PyObject *excobj, *outobj; member
21 PyObject *excobj, *outobj; member
169 PyString_AS_STRING(buf->outobj)); in expand_encodebuffer()
170 orgsize = PyString_GET_SIZE(buf->outobj); in expand_encodebuffer()
178 if (_PyString_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
181 buf->outbuf = (unsigned char *)PyString_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer()
182 buf->outbuf_end = (unsigned char *)PyString_AS_STRING(buf->outobj) in expand_encodebuffer()
183 + PyString_GET_SIZE(buf->outobj); in expand_encodebuffer()
198 orgpos = (Py_ssize_t)(buf->outbuf - PyUnicode_AS_UNICODE(buf->outobj)); in expand_decodebuffer()
199 orgsize = PyUnicode_GET_SIZE(buf->outobj); in expand_decodebuffer()
[all …]
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c23 PyObject *excobj, *outobj; member
172 PyBytes_AS_STRING(buf->outobj)); in expand_encodebuffer()
173 orgsize = PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer()
181 if (_PyBytes_Resize(&buf->outobj, orgsize + incsize) == -1) in expand_encodebuffer()
184 buf->outbuf = (unsigned char *)PyBytes_AS_STRING(buf->outobj) +orgpos; in expand_encodebuffer()
185 buf->outbuf_end = (unsigned char *)PyBytes_AS_STRING(buf->outobj) in expand_encodebuffer()
186 + PyBytes_GET_SIZE(buf->outobj); in expand_encodebuffer()
480 buf.outobj = NULL; in multibytecodec_encode()
492 buf.outobj = PyBytes_FromStringAndSize(NULL, datalen * 2 + 16); in multibytecodec_encode()
493 if (buf.outobj == NULL) in multibytecodec_encode()
[all …]
/external/python/cpython2/Objects/
Dunicodeobject.c4566 charmapencode_resize(PyObject **outobj, Py_ssize_t *outpos, Py_ssize_t requiredsize) in charmapencode_resize() argument
4568 Py_ssize_t outsize = PyString_GET_SIZE(*outobj); in charmapencode_resize()
4572 if (_PyString_Resize(outobj, requiredsize)) { in charmapencode_resize()
4589 PyObject **outobj, Py_ssize_t *outpos) in charmapencode_output() argument
4593 Py_ssize_t outsize = PyString_GET_SIZE(*outobj); in charmapencode_output()
4601 if (!charmapencode_resize(outobj, outpos, requiredsize)) in charmapencode_output()
4603 outstart = PyString_AS_STRING(*outobj); in charmapencode_output()
4618 if (!charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
4622 outstart = PyString_AS_STRING(*outobj); in charmapencode_output()
4630 if (!charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
[all …]
/external/python/cpython3/Objects/
Dunicodeobject.c8314 charmapencode_resize(PyObject **outobj, Py_ssize_t *outpos, Py_ssize_t requiredsize) in charmapencode_resize() argument
8316 Py_ssize_t outsize = PyBytes_GET_SIZE(*outobj); in charmapencode_resize()
8320 if (_PyBytes_Resize(outobj, requiredsize)) in charmapencode_resize()
8336 PyObject **outobj, Py_ssize_t *outpos) in charmapencode_output() argument
8340 Py_ssize_t outsize = PyBytes_GET_SIZE(*outobj); in charmapencode_output()
8348 if (charmapencode_resize(outobj, outpos, requiredsize)) in charmapencode_output()
8350 outstart = PyBytes_AS_STRING(*outobj); in charmapencode_output()
8365 if (charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
8369 outstart = PyBytes_AS_STRING(*outobj); in charmapencode_output()
8377 if (charmapencode_resize(outobj, outpos, requiredsize)) { in charmapencode_output()
[all …]