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

Method _read

tools/python-3.11.9-amd64/Lib/mailbox.py:2048–2055  ·  view source on GitHub ↗

Read size bytes using read_method, honoring start and stop.

(self, size, read_method)

Source from the content-addressed store, hash-verified

2046 _ProxyFile.seek(self, offset, whence)
2047
2048 def _read(self, size, read_method):
2049 """Read size bytes using read_method, honoring start and stop."""
2050 remaining = self._stop - self._pos
2051 if remaining <= 0:
2052 return b''
2053 if size is None or size < 0 or size > remaining:
2054 size = remaining
2055 return _ProxyFile._read(self, size, read_method)
2056
2057 def close(self):
2058 # do *not* close the underlying file object for partial files,

Callers

nothing calls this directly

Calls 1

_readMethod · 0.45

Tested by

no test coverage detected