Home
last modified time | relevance | path

Searched refs:pendingsize (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Modules/cjkcodecs/
Dmultibytecodec.c856 if (npendings + ctx->pendingsize > MAXDECPENDING || in decoder_append_pending()
857 npendings > PY_SSIZE_T_MAX - ctx->pendingsize) { in decoder_append_pending()
861 memcpy(ctx->pending + ctx->pendingsize, buf->inbuf, npendings); in decoder_append_pending()
862 ctx->pendingsize += npendings; in decoder_append_pending()
931 Py_ssize_t pendingsize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl() local
934 pendingbuffer = PyUnicode_AsUTF8AndSize(self->pending, &pendingsize); in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
938 if (pendingsize > MAXENCPENDING*4) { in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
942 statebytes[0] = (unsigned char)pendingsize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
943 memcpy(statebytes + 1, pendingbuffer, pendingsize); in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
944 statesize = 1 + pendingsize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
[all …]
Dmultibytecodec.h91 Py_ssize_t pendingsize;