Lines Matching defs:decode
138 encoding is the str name of the encoding used to decode or encode the
1915 def decode(self, input, final=False):
1916 # decode input (with the eventual \r from a previous pass)
1920 output = self.decoder.decode(input, final=final)
2281 Read and decode the next chunk of data from the BufferedReader.
2301 # Read a chunk, decode it, and put the result in self._decoded_chars.
2307 decoded_chars = self._decoder.decode(input_chunk, eof)
2368 # Rationale: calling decoder.decode() has a large overhead
2379 n = len(decoder.decode(next_input[:skip_bytes]))
2415 chars_decoded += len(decoder.decode(next_input[i:i+1]))
2426 chars_decoded += len(decoder.decode(b'', final=True))
2515 self._decoder.decode(input_chunk, need_eof))
2541 decoder.decode(self.buffer.read(), final=True))
2690 return decoder.decode(self.buffer.getvalue(), final=True)