Searched refs:statebytes (Results 1 – 1 of 1) sorted by relevance
/third_party/python/Modules/cjkcodecs/ |
D | multibytecodec.c | 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() [all …]
|