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

Method encode_vectored_fallback

src/length.rs:87–97  ·  view source on GitHub ↗
(
        &mut self,
        i: impl Iterator<Item = T>,
        mut reserve_and_encode_large: impl FnMut(T),
    )

Source from the content-addressed store, hash-verified

85
86 #[inline(always)]
87 pub fn encode_vectored_fallback<T: Len>(
88 &mut self,
89 i: impl Iterator<Item = T>,
90 mut reserve_and_encode_large: impl FnMut(T),
91 ) {
92 for v in i {
93 let n = v.len();
94 self.encode(&n);
95 reserve_and_encode_large(v);
96 }
97 }
98}
99
100impl Buffer for LengthEncoder {

Callers

nothing calls this directly

Calls 2

lenMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected