MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / readinto1

Method readinto1

tools/python-3.11.9-amd64/Lib/_pyio.py:746–755  ·  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

744 return self._readinto(b, read1=False)
745
746 def readinto1(self, b):
747 """Read bytes into buffer *b*, using at most one system call
748
749 Returns an int representing the number of bytes read (0 for EOF).
750
751 Raises BlockingIOError if the underlying raw stream has no
752 data at the moment.
753 """
754
755 return self._readinto(b, read1=True)
756
757 def _readinto(self, b, read1):
758 if not isinstance(b, memoryview):

Callers 2

readinto1Method · 0.45
readinto1Method · 0.45

Calls 1

_readintoMethod · 0.95

Tested by

no test coverage detected