Searched refs:dec_buffer (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Modules/_io/ |
H A D | textio.c | 1767 PyObject *dec_buffer = NULL; in textiowrapper_read_chunk() local 1795 * len(dec_buffer) bytes ago with decoder state (b'', dec_flags). in textiowrapper_read_chunk() 1804 "OO;illegal decoder state", &dec_buffer, &dec_flags)) in textiowrapper_read_chunk() 1810 if (!PyBytes_Check(dec_buffer)) { in textiowrapper_read_chunk() 1814 Py_TYPE(dec_buffer)->tp_name); in textiowrapper_read_chunk() 1818 Py_INCREF(dec_buffer); in textiowrapper_read_chunk() 1864 /* At the snapshot point, len(dec_buffer) bytes before the read, the in textiowrapper_read_chunk() 1865 * next input to be decoded is dec_buffer + input_chunk. in textiowrapper_read_chunk() 1867 PyObject *next_input = dec_buffer; in textiowrapper_read_chunk() 1869 dec_buffer in textiowrapper_read_chunk() [all...] |
/third_party/python/Lib/ |
H A D | _pyio.py | 2297 dec_buffer, dec_flags = self._decoder.getstate() 2299 # len(dec_buffer) bytes ago with decoder state (b'', dec_flags). 2315 # At the snapshot point, len(dec_buffer) bytes before the read, 2316 # the next input to be decoded is dec_buffer + input_chunk. 2317 self._snapshot = (dec_flags, dec_buffer + input_chunk) 2416 dec_buffer, dec_flags = decoder.getstate() 2417 if not dec_buffer and chars_decoded <= chars_to_skip:
|
Completed in 7 milliseconds