MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / seek

Method seek

plugins/Sidebar/ZipStream.py:41–44  ·  view source on GitHub ↗
(self, pos, whence=0)

Source from the content-addressed store, hash-verified

39 return self.pos
40
41 def seek(self, pos, whence=0):
42 if pos >= self.buff_pos:
43 self.buff.seek(pos - self.buff_pos, whence)
44 self.pos = pos
45
46 def flush(self):
47 pass

Callers 14

actionFileMethod · 0.45
downloadContentMethod · 0.45
downloaderMethod · 0.45
handleGetFileMethod · 0.45
getFileMethod · 0.45
patchFunction · 0.45
testUpdateJsonMethod · 0.45
testUnsafePatternMethod · 0.45
testStreamingMethod · 0.45
testPatchMethod · 0.45
actionBenchmarkMethod · 0.45
downloadGeoLiteDbMethod · 0.45

Calls

no outgoing calls

Tested by 4

testUpdateJsonMethod · 0.36
testUnsafePatternMethod · 0.36
testStreamingMethod · 0.36
testPatchMethod · 0.36