Lines Matching refs:outobj

15     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()
200 if (PyUnicode_Resize(&buf->outobj, orgsize + ( in expand_decodebuffer()
204 buf->outbuf = PyUnicode_AS_UNICODE(buf->outobj) + orgpos; in expand_decodebuffer()
205 buf->outbuf_end = PyUnicode_AS_UNICODE(buf->outobj) in expand_decodebuffer()
206 + PyUnicode_GET_SIZE(buf->outobj); in expand_decodebuffer()
479 buf.outobj = NULL; in multibytecodec_encode()
488 buf.outobj = PyString_FromStringAndSize(NULL, datalen * 2 + 16); in multibytecodec_encode()
489 if (buf.outobj == NULL) in multibytecodec_encode()
491 buf.outbuf = (unsigned char *)PyString_AS_STRING(buf.outobj); in multibytecodec_encode()
492 buf.outbuf_end = buf.outbuf + PyString_GET_SIZE(buf.outobj); in multibytecodec_encode()
526 PyString_AS_STRING(buf.outobj)); in multibytecodec_encode()
528 if (finalsize != PyString_GET_SIZE(buf.outobj)) in multibytecodec_encode()
529 if (_PyString_Resize(&buf.outobj, finalsize) == -1) in multibytecodec_encode()
534 return buf.outobj; in multibytecodec_encode()
538 Py_XDECREF(buf.outobj); in multibytecodec_encode()
630 buf.outobj = PyUnicode_FromUnicode(NULL, datalen); in MultibyteCodec_Decode()
631 if (buf.outobj == NULL) in MultibyteCodec_Decode()
633 buf.outbuf = PyUnicode_AS_UNICODE(buf.outobj); in MultibyteCodec_Decode()
634 buf.outbuf_end = buf.outbuf + PyUnicode_GET_SIZE(buf.outobj); in MultibyteCodec_Decode()
656 PyUnicode_AS_UNICODE(buf.outobj)); in MultibyteCodec_Decode()
658 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in MultibyteCodec_Decode()
659 if (PyUnicode_Resize(&buf.outobj, finalsize) == -1) in MultibyteCodec_Decode()
665 return make_tuple(buf.outobj, datalen); in MultibyteCodec_Decode()
671 Py_XDECREF(buf.outobj); in MultibyteCodec_Decode()
841 if (buf->outobj == NULL) { /* only if outobj is not allocated yet */ in decoder_prepare_buffer()
842 buf->outobj = PyUnicode_FromUnicode(NULL, size); in decoder_prepare_buffer()
843 if (buf->outobj == NULL) in decoder_prepare_buffer()
845 buf->outbuf = PyUnicode_AS_UNICODE(buf->outobj); in decoder_prepare_buffer()
847 PyUnicode_GET_SIZE(buf->outobj); in decoder_prepare_buffer()
1041 buf.outobj = buf.excobj = NULL; in mbidecoder_decode()
1083 finalsize = (Py_ssize_t)(buf.outbuf - PyUnicode_AS_UNICODE(buf.outobj)); in mbidecoder_decode()
1084 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in mbidecoder_decode()
1085 if (PyUnicode_Resize(&buf.outobj, finalsize) == -1) in mbidecoder_decode()
1092 return buf.outobj; in mbidecoder_decode()
1099 Py_XDECREF(buf.outobj); in mbidecoder_decode()
1245 buf.outobj = buf.excobj = NULL; in mbstreamreader_iread()
1314 PyUnicode_AS_UNICODE(buf.outobj)); in mbstreamreader_iread()
1324 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in mbstreamreader_iread()
1325 if (PyUnicode_Resize(&buf.outobj, finalsize) == -1) in mbstreamreader_iread()
1330 return buf.outobj; in mbstreamreader_iread()
1335 Py_XDECREF(buf.outobj); in mbstreamreader_iread()