MCPcopy Index your code
hub / github.com/python/cpython / _get_decoded_chars

Method _get_decoded_chars

Lib/_pyio.py:2315–2323  ·  view source on GitHub ↗

Advance into the _decoded_chars buffer.

(self, n=None)

Source from the content-addressed store, hash-verified

2313 self._decoded_chars_used = 0
2314
2315 def _get_decoded_chars(self, n=None):
2316 """Advance into the _decoded_chars buffer."""
2317 offset = self._decoded_chars_used
2318 if n is None:
2319 chars = self._decoded_chars[offset:]
2320 else:
2321 chars = self._decoded_chars[offset:offset + n]
2322 self._decoded_chars_used += len(chars)
2323 return chars
2324
2325 def _get_locale_encoding(self):
2326 try:

Callers 2

readMethod · 0.95
readlineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected