MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / populate

Method populate

src/int.rs:54–57  ·  view source on GitHub ↗
(&mut self, input: &mut &'a [u8], length: usize)

Source from the content-addressed store, hash-verified

52
53impl<'a, T: Int> View<'a> for IntDecoder<'a, T> {
54 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> {
55 unpack_ints::<T>(input, length, &mut self.0)?;
56 Ok(())
57 }
58}
59
60// Makes IntDecoder<u32> able to decode i32/f32 (but not char since it can fail).

Callers

nothing calls this directly

Calls 3

errFunction · 0.70
borrowed_cloneMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected