MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / aux

Method aux

atomic-core/src/change/format_v3/graph_fields/encode.rs:55–60  ·  view source on GitHub ↗
(&mut self, value: &T)

Source from the content-addressed store, hash-verified

53 Ok(())
54 }
55 fn aux<T: serde::Serialize>(&mut self, value: &T) -> FormatResult<()> {
56 let bytes = postcard::to_allocvec(value)?;
57 charge(&mut self.budget, bytes.len(), 1)?;
58 self.aux.extend(bytes);
59 Ok(())
60 }
61 fn insertion(&mut self, r: usize, v: &CompactInsertion) -> FormatResult<()> {
62 self.n(ins(r, 0), v.flag.into());
63 self.n(ins(r, 1), v.start.into());

Callers 1

opMethod · 0.45

Calls 3

extendMethod · 0.80
chargeFunction · 0.70
lenMethod · 0.45

Tested by

no test coverage detected