MCPcopy
hub / github.com/zer0yu/CyberSecurityRSS / read

Method read

tests/test_add_feed_to_tiny.py:42–48  ·  view source on GitHub ↗
(self, size: int = -1)

Source from the content-addressed store, hash-verified

40 self.status = status
41
42 def read(self, size: int = -1) -> bytes:
43 if size is None or size < 0:
44 size = len(self._payload) - self._offset
45 start = self._offset
46 end = min(len(self._payload), self._offset + size)
47 self._offset = end
48 return self._payload[start:end]
49
50 def getcode(self) -> int:
51 return self.status

Callers 3

fetch_feedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected