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

Method encode

src/derive/variant.rs:11–13  ·  view source on GitHub ↗
(&mut self, v: &u8)

Source from the content-addressed store, hash-verified

9impl<const N: usize> Encoder<u8> for VariantEncoder<N> {
10 #[inline(always)]
11 fn encode(&mut self, v: &u8) {
12 unsafe { self.0.push_unchecked(*v) };
13 }
14}
15
16impl<const N: usize> Buffer for VariantEncoder<N> {

Callers

nothing calls this directly

Calls 1

push_uncheckedMethod · 0.80

Tested by

no test coverage detected