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

Method active_read_slice

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

Source from the content-addressed store, hash-verified

1198 }
1199
1200 fn active_read_slice(&self) -> &[u8] {
1201 &self.buffer[self.pos as usize..][..self.readahead() as usize]
1202 }
1203
1204 fn read_fast(&mut self, n: usize) -> Option<Vec<u8>> {
1205 let ret = self.active_read_slice().get(..n)?.to_vec();

Callers 3

read_fastMethod · 0.80
read_genericMethod · 0.80
read_allMethod · 0.80

Calls 1

readaheadMethod · 0.80

Tested by

no test coverage detected