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

Method readahead

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

Source from the content-addressed store, hash-verified

874
875 #[inline]
876 const fn readahead(&self) -> Offset {
877 if self.valid_read() {
878 self.read_end - self.pos
879 } else {
880 0
881 }
882 }
883
884 const fn reset_read(&mut self) {
885 self.read_end = -1;

Callers 6

seekMethod · 0.80
active_read_sliceMethod · 0.80
read_genericMethod · 0.80
peekMethod · 0.80
readinto_genericMethod · 0.80
read1Method · 0.80

Calls 1

valid_readMethod · 0.80

Tested by

no test coverage detected