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

Method number

atomic-core/examples/graph_codec_lab/codec.rs:142–147  ·  view source on GitHub ↗
(&mut self, kind: u8, n: u64)

Source from the content-addressed store, hash-verified

140 Ok(id)
141 }
142 fn number(&mut self, kind: u8, n: u64) -> SResult<()> {
143 let id = self.column(kind, n)?;
144 self.c.control.push(16);
145 put(&mut self.c.control, id as u64);
146 Ok(())
147 }
148 fn byte_sequence(&mut self, bytes: &[u8]) -> SResult<()> {
149 if self.sequential
150 && self.c.content_hash.is_some()

Callers 4

small_numberMethod · 0.80
serialize_u16Method · 0.80
serialize_u32Method · 0.80
serialize_u64Method · 0.80

Calls 3

columnMethod · 0.80
putFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected