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

Method populate

src/derive/vec.rs:218–221  ·  view source on GitHub ↗
(&mut self, input: &mut &'a [u8], length: usize)

Source from the content-addressed store, hash-verified

216
217impl<'a, T: Decode<'a>> View<'a> for VecDecoder<'a, T> {
218 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> {
219 self.lengths.populate(input, length)?;
220 self.elements.populate(input, self.lengths.length())
221 }
222}
223
224macro_rules! encode_body {

Callers 2

decodeFunction · 0.45
decodeMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected