Lines Matching defs:len
354 Py_ssize_t len;
360 len = PyUnicode_GET_LENGTH(output);
363 if (len == 0)
370 only_lf = (memchr(in_str, '\r', kind * len) == NULL);
378 memchr(in_str, '\n', kind * len) != NULL) {
393 if (i >= len)
422 if (i >= len)
441 translated = PyMem_Malloc(kind * len);
467 if (in > len)
1540 Py_ssize_t len;
1544 len = PyUnicode_GET_LENGTH(obj);
1548 if (PyBytes_AsStringAndSize(obj, &src, &len) < 0) {
1553 memcpy(buf + pos, src, len);
1554 pos += len;
1795 * len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
1846 nbytes = input_chunk_buf.len;
1864 /* At the snapshot point, len(dec_buffer) bytes before the read, the
2026 Py_ssize_t len = (end - start)/kind;
2034 *consumed = len;
2050 *consumed = len;
2075 *consumed = len;
2099 *consumed = len;
2722 #define DECODER_DECODE(start, len, res) do { \
2724 self->decoder, &_Py_ID(decode), "y#", start, len); \