MCPcopy Create free account
hub / github.com/ActiveState/code / seek

Method seek

recipes/Python/572159_SPICE/recipe-572159.py:141–145  ·  view source on GitHub ↗

Seek to virtual positon in file.

(self, offset, whence=0)

Source from the content-addressed store, hash-verified

139 self.__file.write(_encode(string, self.__em1, self.__em2))
140
141 def seek(self, offset, whence=0):
142 'Seek to virtual positon in file.'
143 self.__file.seek(offset * 4, whence)
144 offset = self.__file.tell() / 4
145 self.__file.seek(offset * 4)
146
147 def tell(self):
148 'Return the virtual position in file.'

Callers 15

testFunction · 0.45
recipe-577699.pyFile · 0.45
write_partMethod · 0.45
linesMethod · 0.45
copy_segment_to_fileFunction · 0.45
generate_cardFunction · 0.45
doplotFunction · 0.45
acquireMethod · 0.45
releaseMethod · 0.45
patchstreamFunction · 0.45
writepagesMethod · 0.45

Calls 1

tellMethod · 0.45

Tested by

no test coverage detected