MCPcopy Index your code
hub / github.com/RustPython/RustPython / read

Method read

Lib/tarfile.py:533–538  ·  view source on GitHub ↗

Return the next size number of bytes from the stream.

(self, size)

Source from the content-addressed store, hash-verified

531 return self.pos
532
533 def read(self, size):
534 """Return the next size number of bytes from the stream."""
535 assert size is not None
536 buf = self._read(size)
537 self.pos += len(buf)
538 return buf
539
540 def _read(self, size):
541 """Return size bytes from the stream.

Callers 14

_init_read_gzMethod · 0.95
seekMethod · 0.95
copyfileobjFunction · 0.45
readMethod · 0.45
_readMethod · 0.45
__readMethod · 0.45
__init__Method · 0.45
readMethod · 0.45
fromtarfileMethod · 0.45
_proc_gnulongMethod · 0.45
_proc_sparseMethod · 0.45
_proc_paxMethod · 0.45

Calls 2

_readMethod · 0.95
lenFunction · 0.85

Tested by

no test coverage detected