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

Method populate

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

Source from the content-addressed store, hash-verified

69
70impl<'a, T: Decode<'a>, const N: usize> View<'a> for ArrayDecoder<'a, T, N> {
71 fn populate(&mut self, input: &mut &'a [u8], length: usize) -> Result<()> {
72 let length = mul_length(length, N)?;
73 self.0.populate(input, length)
74 }
75}
76
77impl<'a, T: Decode<'a>, const N: usize> Decoder<'a, [T; N]> for ArrayDecoder<'a, T, N> {

Callers

nothing calls this directly

Calls 1

mul_lengthFunction · 0.85

Tested by

no test coverage detected