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

Method readinto1

Lib/_pyio.py:712–721  ·  view source on GitHub ↗

Read bytes into buffer *b*, using at most one system call Returns an int representing the number of bytes read (0 for EOF). Raises BlockingIOError if the underlying raw stream has no data at the moment.

(self, b)

Source from the content-addressed store, hash-verified

710 return self._readinto(b, read1=False)
711
712 def readinto1(self, b):
713 """Read bytes into buffer *b*, using at most one system call
714
715 Returns an int representing the number of bytes read (0 for EOF).
716
717 Raises BlockingIOError if the underlying raw stream has no
718 data at the moment.
719 """
720
721 return self._readinto(b, read1=True)
722
723 def _readinto(self, b, read1):
724 if not isinstance(b, memoryview):

Callers 2

readinto1Method · 0.45
readinto1Method · 0.45

Calls 1

_readintoMethod · 0.95

Tested by

no test coverage detected