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

Method readinto

tools/python-3.11.9-amd64/Lib/_pyio.py:732–744  ·  view source on GitHub ↗

Read bytes into a pre-allocated bytes-like object b. Like read(), this may issue multiple reads to the underlying raw stream, unless the latter is 'interactive'. Returns an int representing the number of bytes read (0 for EOF). Raises BlockingIOError if the

(self, b)

Source from the content-addressed store, hash-verified

730 self._unsupported("read1")
731
732 def readinto(self, b):
733 """Read bytes into a pre-allocated bytes-like object b.
734
735 Like read(), this may issue multiple reads to the underlying raw
736 stream, unless the latter is 'interactive'.
737
738 Returns an int representing the number of bytes read (0 for EOF).
739
740 Raises BlockingIOError if the underlying raw stream has no
741 data at the moment.
742 """
743
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

Callers

nothing calls this directly

Calls 1

_readintoMethod · 0.95

Tested by

no test coverage detected