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

Method encode

src/int.rs:24–27  ·  view source on GitHub ↗
(&mut self, p: &P)

Source from the content-addressed store, hash-verified

22
23 #[inline(always)]
24 fn encode(&mut self, p: &P) {
25 let t = bytemuck::must_cast(*p);
26 unsafe { self.0.push_unchecked(t) };
27 }
28}
29
30impl<T: Int> Buffer for IntEncoder<T> {

Callers

nothing calls this directly

Calls 1

push_uncheckedMethod · 0.80

Tested by

no test coverage detected