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

Method advance

crates/stdlib/src/compression.rs:107–112  ·  view source on GitHub ↗
(&mut self, consumed: usize)

Source from the content-addressed store, hash-verified

105 self.data1.get(..CHUNKSIZE).unwrap_or(self.data1)
106 }
107 pub fn advance(&mut self, consumed: usize) {
108 self.data1 = &self.data1[consumed..];
109 if self.data1.is_empty() {
110 self.data1 = core::mem::take(&mut self.data2);
111 }
112 }
113}
114
115pub fn _decompress<D: Decompressor>(

Callers 2

_decompress_chunksFunction · 0.45
decode_utf8_compatibleFunction · 0.45

Calls 2

takeFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected