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

Method _read

Lib/plistlib.py:514–524  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

512 return tokenL
513
514 def _read(self, size):
515 cursize = min(size, _MIN_READ_BUF_SIZE)
516 data = self._fp.read(cursize)
517 while True:
518 if len(data) != cursize:
519 raise InvalidFileException
520 if cursize == size:
521 return data
522 delta = min(cursize, size - cursize)
523 data += self._fp.read(delta)
524 cursize += delta
525
526 def _read_ints(self, n, size):
527 data = self._read(size * n)

Callers 2

_read_intsMethod · 0.95
_read_objectMethod · 0.95

Calls 3

minFunction · 0.85
lenFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected