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

Method read

tests/GitRelease.py:64–73  ·  view source on GitHub ↗
(self, size=-1)

Source from the content-addressed store, hash-verified

62 self.index = 0
63
64 def read(self, size=-1):
65 if size < 0 or size is None:
66 start = self.index
67 self.index = self.file_length
68 return self.dat[start:]
69 else:
70 start = self.index
71 end = start + size
72 self.index = end
73 return self.dat[start:end]
74
75
76repo_name = "RepoTest"

Callers 3

indexMethod · 0.45
testDownloadMethod · 0.45
testDownloadAssetFileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected