• Home
  • Raw
  • Download

Lines Matching refs:pendingsize

856     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()
1143 origpending = self->pendingsize; in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1145 if (self->pendingsize == 0) { in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1150 if (size > PY_SSIZE_T_MAX - self->pendingsize) { in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1154 wsize = size + self->pendingsize; in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1160 memcpy(wdata, self->pending, self->pendingsize); in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1161 memcpy(wdata + self->pendingsize, data, size); in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1162 self->pendingsize = 0; in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1176 self->pendingsize = origpending; in _multibytecodec_MultibyteIncrementalDecoder_decode_impl()
1215 self->pendingsize); in _multibytecodec_MultibyteIncrementalDecoder_getstate_impl()
1275 self->pendingsize = buffersize; in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
1276 memcpy(self->pending, bufferstr, self->pendingsize); in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
1293 self->pendingsize = 0; in _multibytecodec_MultibyteIncrementalDecoder_reset_impl()
1332 self->pendingsize = 0; in mbidecoder_new()
1430 if (self->pendingsize > 0) { in mbstreamreader_iread()
1434 if (PyBytes_GET_SIZE(cres) > PY_SSIZE_T_MAX - self->pendingsize) { in mbstreamreader_iread()
1438 rsize = PyBytes_GET_SIZE(cres) + self->pendingsize; in mbstreamreader_iread()
1443 memcpy(ctrdata, self->pending, self->pendingsize); in mbstreamreader_iread()
1444 memcpy(ctrdata + self->pendingsize, in mbstreamreader_iread()
1449 self->pendingsize = 0; in mbstreamreader_iread()
1603 self->pendingsize = 0; in _multibytecodec_MultibyteStreamReader_reset_impl()
1651 self->pendingsize = 0; in mbstreamreader_new()