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

Function put

atomic-core/src/change/format_v3/graph_fields/wire.rs:30–36  ·  view source on GitHub ↗
(out: &mut Vec<u8>, mut n: u64)

Source from the content-addressed store, hash-verified

28 Ok(())
29}
30pub(super) fn put(out: &mut Vec<u8>, mut n: u64) {
31 while n >= 128 {
32 out.push((n as u8) | 128);
33 n >>= 7;
34 }
35 out.push(n as u8);
36}
37pub(super) fn get(input: &mut &[u8]) -> FormatResult<u64> {
38 let mut n = 0;
39 for shift in (0..70).step_by(7) {

Callers 9

writeMethod · 0.70
insertionMethod · 0.70
edgesMethod · 0.70
optional_insertionMethod · 0.70
optional_edgesMethod · 0.70
opMethod · 0.70
encodeFunction · 0.70

Calls 1

pushMethod · 0.45