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

Function put

atomic-core/examples/graph_codec_lab/codec.rs:72–78  ·  view source on GitHub ↗
(out: &mut Vec<u8>, mut n: u64)

Source from the content-addressed store, hash-verified

70}
71
72fn put(out: &mut Vec<u8>, mut n: u64) {
73 while n >= 128 {
74 out.push((n as u8) | 128);
75 n >>= 7;
76 }
77 out.push(n as u8);
78}
79fn get(input: &mut &[u8]) -> Result<u64> {
80 let mut n = 0;
81 for shift in (0..70).step_by(7) {

Callers 5

deltaFunction · 0.70
numberMethod · 0.70
byte_sequenceMethod · 0.70
replayFunction · 0.70

Calls 1

pushMethod · 0.45