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

Method encode

src/serde/variant.rs:14–16  ·  view source on GitHub ↗
(&mut self, v: &u8)

Source from the content-addressed store, hash-verified

12impl Encoder<u8> for VariantEncoder {
13 #[inline(always)]
14 fn encode(&mut self, v: &u8) {
15 unsafe { self.data.push_unchecked(*v) };
16 }
17}
18
19impl Buffer for VariantEncoder {

Callers 3

serialize_enumMethod · 0.45
serialize_seqMethod · 0.45
serialize_mapMethod · 0.45

Calls 1

push_uncheckedMethod · 0.80

Tested by

no test coverage detected