• Home
  • Raw
  • Download

Lines Matching refs:statebytes

928     unsigned char statebytes[1 + MAXENCPENDING*4 + sizeof(self->state.c)];  in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()  local
942 statebytes[0] = (unsigned char)pendingsize; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
943 memcpy(statebytes + 1, pendingbuffer, pendingsize); in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
946 statebytes[0] = 0; in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
949 memcpy(statebytes+statesize, self->state.c, in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
953 return (PyObject *)_PyLong_FromByteArray(statebytes, statesize, in _multibytecodec_MultibyteIncrementalEncoder_getstate_impl()
970 unsigned char statebytes[1 + MAXENCPENDING*4 + sizeof(self->state.c)]; in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl() local
972 if (_PyLong_AsByteArray(statelong, statebytes, sizeof(statebytes), in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
978 if (statebytes[0] > MAXENCPENDING*4) { in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
983 pending = PyUnicode_DecodeUTF8((const char *)statebytes+1, in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
984 statebytes[0], "strict"); in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
991 memcpy(self->state.c, statebytes+1+statebytes[0], in _multibytecodec_MultibyteIncrementalEncoder_setstate_impl()
1247 unsigned char statebytes[8]; in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl() local
1255 if (_PyLong_AsByteArray(statelong, statebytes, sizeof(statebytes), in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()
1277 memcpy(self->state.c, statebytes, sizeof(statebytes)); in _multibytecodec_MultibyteIncrementalDecoder_setstate_impl()