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

Method _read2

tools/python-3.11.9-amd64/Lib/zipfile.py:1058–1072  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

1056 return data
1057
1058 def _read2(self, n):
1059 if self._compress_left <= 0:
1060 return b''
1061
1062 n = max(n, self.MIN_READ_SIZE)
1063 n = min(n, self._compress_left)
1064
1065 data = self._fileobj.read(n)
1066 self._compress_left -= len(data)
1067 if not data:
1068 raise EOFError
1069
1070 if self._decrypter is not None:
1071 data = self._decrypter(data)
1072 return data
1073
1074 def close(self):
1075 try:

Callers 1

_read1Method · 0.95

Calls 3

maxFunction · 0.85
minFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected