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

Method readinto

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

Read bytes into a pre-allocated bytes-like object b. Returns an int representing the number of bytes read (0 for EOF), or None if the object is set not to block and has no data to read.

(self, b)

Source from the content-addressed store, hash-verified

666 return data
667
668 def readinto(self, b):
669 """Read bytes into a pre-allocated bytes-like object b.
670
671 Returns an int representing the number of bytes read (0 for EOF), or
672 None if the object is set not to block and has no data to read.
673 """
674 self._unsupported("readinto")
675
676 def write(self, b):
677 """Write the given buffer to the IO stream.

Callers 1

readMethod · 0.95

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected