Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
seek
Method · 0.80
active_read_slice
Method · 0.80
read_generic
Method · 0.80
peek
Method · 0.80
readinto_generic
Method · 0.80
read1
Method · 0.80
Calls
1
valid_read
Method · 0.80
Tested by
no test coverage detected