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

Method readinto1

Lib/compression/zstd/_zstdfile.py:198–205  ·  view source on GitHub ↗

Read bytes into b, while trying to avoid making multiple reads from the underlying stream. Returns the number of bytes read (0 for EOF).

(self, b)

Source from the content-addressed store, hash-verified

196 return self._buffer.readinto(b)
197
198 def readinto1(self, b):
199 """Read bytes into b, while trying to avoid making multiple reads
200 from the underlying stream.
201
202 Returns the number of bytes read (0 for EOF).
203 """
204 self._check_can_read()
205 return self._buffer.readinto1(b)
206
207 def readline(self, size=-1):
208 """Read a line of uncompressed bytes from the file.

Callers 5

test_readinto1Method · 0.45
test_readinto1Method · 0.45
test_readinto1_arrayMethod · 0.45
read_opsMethod · 0.45

Calls 1

_check_can_readMethod · 0.80

Tested by 5

test_readinto1Method · 0.36
test_readinto1Method · 0.36
test_readinto1_arrayMethod · 0.36
read_opsMethod · 0.36