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

Method populate

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

Source from the content-addressed store, hash-verified

54
55impl<'a, K: Decode<'a>, V: Decode<'a>> View<'a> for MapDecoder<'a, K, V> {
56 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> {
57 self.lengths.populate(input, length)?;
58 self.keys.populate(input, self.lengths.length())?;
59 self.values.populate(input, self.lengths.length())
60 }
61}
62
63macro_rules! encode_body {

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected