MCPcopy Create free account
hub / github.com/Voxon-Development/zeta-lang / write

Method write

zeta_utilities/src/string_pool.rs:27–33  ·  view source on GitHub ↗
(&mut self, bytes: &[u8])

Source from the content-addressed store, hash-verified

25 #[inline(always)]
26 fn new() -> Self {
27 Self {
28 buf: SmallVec::new(),
29 }
30 }
31}
32
33impl<const N: usize> Write for SmallVecWriter<N> {
34 #[inline(always)]
35 fn write_str(&mut self, s: &str) -> fmt::Result {
36 self.buf.extend_from_slice(s.as_bytes());

Callers 5

alloc_valueMethod · 0.80
alloc_value_immutableMethod · 0.80
allocMethod · 0.80
alloc_valueMethod · 0.80
alloc_value_immutableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected