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

Function put

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

Source from the content-addressed store, hash-verified

27}
28
29fn put(out: &mut Vec<u8>, mut n: u64) {
30 while n >= 128 {
31 out.push((n as u8) | 128);
32 n >>= 7;
33 }
34 out.push(n as u8);
35}
36
37fn get(input: &mut &[u8]) -> Result<u64> {
38 let mut n = 0;

Callers 6

deltaFunction · 0.70
optional_branchMethod · 0.70
optional_numberMethod · 0.70
bytesMethod · 0.70
leavesMethod · 0.70
encodeFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected