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

Method read_array

crates/compiler-core/src/marshal.rs:165–169  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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)?;
167 *self = rest;
168 Ok(chunk)
169 }
170}
171
172impl<'a> ReadBorrowed<'a> for &'a [u8] {

Callers 4

read_u8Method · 0.45
read_u16Method · 0.45
read_u32Method · 0.45
read_u64Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected