Lines Matching refs:consumed
182 Py_ssize_t consumed, len; in escape_encode() local
188 consumed = PyString_GET_SIZE(str); in escape_encode()
200 return codec_tuple(str, consumed); in escape_encode()
239 Py_ssize_t consumed; in utf_7_decode() local
245 consumed = pbuf.len; in utf_7_decode()
248 final ? NULL : &consumed); in utf_7_decode()
252 return codec_tuple(decoded, consumed); in utf_7_decode()
262 Py_ssize_t consumed; in utf_8_decode() local
268 consumed = pbuf.len; in utf_8_decode()
271 final ? NULL : &consumed); in utf_8_decode()
275 return codec_tuple(decoded, consumed); in utf_8_decode()
286 Py_ssize_t consumed; in utf_16_decode() local
292 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_16_decode()
294 &byteorder, final ? NULL : &consumed); in utf_16_decode()
298 return codec_tuple(decoded, consumed); in utf_16_decode()
309 Py_ssize_t consumed; in utf_16_le_decode() local
316 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_16_le_decode()
318 &byteorder, final ? NULL : &consumed); in utf_16_le_decode()
322 return codec_tuple(decoded, consumed); in utf_16_le_decode()
333 Py_ssize_t consumed; in utf_16_be_decode() local
340 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_16_be_decode()
342 &byteorder, final ? NULL : &consumed); in utf_16_be_decode()
346 return codec_tuple(decoded, consumed); in utf_16_be_decode()
366 Py_ssize_t consumed; in utf_16_ex_decode() local
371 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_16_ex_decode()
373 &byteorder, final ? NULL : &consumed); in utf_16_ex_decode()
377 tuple = Py_BuildValue("Oni", unicode, consumed, byteorder); in utf_16_ex_decode()
390 Py_ssize_t consumed; in utf_32_decode() local
396 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_32_decode()
398 &byteorder, final ? NULL : &consumed); in utf_32_decode()
402 return codec_tuple(decoded, consumed); in utf_32_decode()
413 Py_ssize_t consumed; in utf_32_le_decode() local
419 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_32_le_decode()
421 &byteorder, final ? NULL : &consumed); in utf_32_le_decode()
425 return codec_tuple(decoded, consumed); in utf_32_le_decode()
436 Py_ssize_t consumed; in utf_32_be_decode() local
442 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_32_be_decode()
444 &byteorder, final ? NULL : &consumed); in utf_32_be_decode()
448 return codec_tuple(decoded, consumed); in utf_32_be_decode()
468 Py_ssize_t consumed; in utf_32_ex_decode() local
473 consumed = pbuf.len; /* This is overwritten unless final is true. */ in utf_32_ex_decode()
475 &byteorder, final ? NULL : &consumed); in utf_32_ex_decode()
479 tuple = Py_BuildValue("Oni", unicode, consumed, byteorder); in utf_32_ex_decode()
581 Py_ssize_t consumed; in mbcs_decode() local
587 consumed = pbuf.len; in mbcs_decode()
590 final ? NULL : &consumed); in mbcs_decode()
594 return codec_tuple(decoded, consumed); in mbcs_decode()