Lines Matching refs:bytes
670 // ascii unicode, bytes, or list of them.
675 * next_input is the chunk of input bytes that comes next after the
889 _textiowrapper_decode(PyObject *decoder, PyObject *bytes, int eof)
894 chars = _PyIncrementalNewlineDecoder_decode(decoder, bytes, eof);
896 chars = PyObject_CallMethodObjArgs(decoder, &_Py_ID(decode), bytes,
1568 // NOTE: We cleared buffer but we don't know how many bytes are actually written
1648 "encoder should return a bytes object, not '%.200s'",
1795 * len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
1813 "bytes object, not '%.200s'",
1840 "underlying %s() should have returned a bytes-like object, "
1864 /* At the snapshot point, len(dec_buffer) bytes before the read, the
1914 PyObject *bytes = PyObject_CallMethodNoArgs(self->buffer, &_Py_ID(read));
1916 if (bytes == NULL)
1921 bytes, 1);
1924 self->decoder, &_Py_ID(decode), bytes, Py_True, NULL);
1925 Py_DECREF(bytes);
2212 /* There may be some remaining bytes we'll have to prepend to the
2565 "underlying read() should have returned a bytes "
2713 "bytes object, not '%.200s'", \
2745 /* Before pos and no bytes buffered in decoder => OK */