MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_decoded_chars

Method _get_decoded_chars

Lib/_pyio.py:2291–2299  ·  view source on GitHub ↗

Advance into the _decoded_chars buffer.

(self, n=None)

Source from the content-addressed store, hash-verified

2289 self._decoded_chars_used = 0
2290
2291 def _get_decoded_chars(self, n=None):
2292 """Advance into the _decoded_chars buffer."""
2293 offset = self._decoded_chars_used
2294 if n is None:
2295 chars = self._decoded_chars[offset:]
2296 else:
2297 chars = self._decoded_chars[offset:offset + n]
2298 self._decoded_chars_used += len(chars)
2299 return chars
2300
2301 def _get_locale_encoding(self):
2302 try:

Callers 2

readMethod · 0.95
readlineMethod · 0.95

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected