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

Method read_slice

crates/compiler-core/src/marshal.rs:161–163  ·  view source on GitHub ↗
(&mut self, n: u32)

Source from the content-addressed store, hash-verified

159
160impl Read for &[u8] {
161 fn read_slice(&mut self, n: u32) -> Result<&[u8]> {
162 self.read_slice_borrow(n)
163 }
164
165 fn read_array<const N: usize>(&mut self) -> Result<&[u8; N]> {
166 let (chunk, rest) = self.split_first_chunk::<N>().ok_or(MarshalError::Eof)?;

Callers 6

read_arrayMethod · 0.80
read_strMethod · 0.80
read_wtf8Method · 0.80
read_marshal_bytesFunction · 0.80
deserialize_value_typedFunction · 0.80
read_pstringFunction · 0.80

Calls 3

read_slice_borrowMethod · 0.80
as_refMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected