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

Method readinto

Lib/compression/_common/_streams.py:66–70  ·  view source on GitHub ↗
(self, b)

Source from the content-addressed store, hash-verified

64 return self._fp.seekable()
65
66 def readinto(self, b):
67 with memoryview(b) as view, view.cast("B") as byte_view:
68 data = self.read(len(byte_view))
69 byte_view[:len(data)] = data
70 return len(data)
71
72 def read(self, size=-1):
73 if size < 0:

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
castMethod · 0.80

Tested by

no test coverage detected