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

Method raw_offset

crates/vm/src/stdlib/_io.rs:867–873  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

865
866 #[inline]
867 const fn raw_offset(&self) -> Offset {
868 if (self.valid_read() || self.valid_write()) && self.raw_pos >= 0 {
869 self.raw_pos - self.pos
870 } else {
871 0
872 }
873 }
874
875 #[inline]
876 const fn readahead(&self) -> Offset {

Callers 5

flushMethod · 0.80
flush_rewindMethod · 0.80
seekMethod · 0.80
writeMethod · 0.80
tellMethod · 0.80

Calls 2

valid_readMethod · 0.80
valid_writeMethod · 0.80

Tested by

no test coverage detected