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

Method readinto

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

Same as RawIOBase.readinto().

(self, b)

Source from the content-addressed store, hash-verified

1703 return bytes(result)
1704
1705 def readinto(self, b):
1706 """Same as RawIOBase.readinto()."""
1707 m = memoryview(b).cast('B')
1708 data = self.read(len(m))
1709 n = len(data)
1710 m[:n] = data
1711 return n
1712
1713 def write(self, b):
1714 """Write bytes b to file, return number written.

Callers 3

_readintoMethod · 0.45
readintoMethod · 0.45
readintoMethod · 0.45

Calls 1

readMethod · 0.95

Tested by

no test coverage detected