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

Method chunk

crates/stdlib/src/compression.rs:104–106  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

102 [self.data1, self.data2].concat()
103 }
104 pub fn chunk(&self) -> &'a [u8] {
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() {

Callers 1

_decompress_chunksFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected