MCPcopy Index your code
hub / github.com/RustPython/RustPython / seek

Method seek

crates/vm/src/stdlib/_io.rs:294–296  ·  view source on GitHub ↗

skip to the jth position

(&mut self, seek: SeekFrom)

Source from the content-addressed store, hash-verified

292
293 //skip to the jth position
294 fn seek(&mut self, seek: SeekFrom) -> io::Result<u64> {
295 self.cursor.seek(seek)
296 }
297
298 //Read k bytes from the object and return.
299 fn read(&mut self, bytes: Option<usize>) -> Option<Vec<u8>> {

Callers 2

seekMethod · 0.45
__setstate__Method · 0.45

Calls 15

_unsupportedFunction · 0.85
check_decodedFunction · 0.85
seekfromFunction · 0.85
os_errFunction · 0.85
get_offsetFunction · 0.85
lseekFunction · 0.85
raw_tell_cacheMethod · 0.80
readaheadMethod · 0.80
raw_offsetMethod · 0.80
raw_seekMethod · 0.80
reset_readMethod · 0.80

Tested by

no test coverage detected