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

Function put

atomic-core/examples/semantic_codec_lab/transforms.rs:7–13  ·  view source on GitHub ↗
(out: &mut Vec<u8>, mut n: u64)

Source from the content-addressed store, hash-verified

5pub const METHODS: [&str; 5] = ["raw", "rle", "byte_planes", "bit_pack", "parity"];
6
7pub fn put(out: &mut Vec<u8>, mut n: u64) {
8 while n >= 128 {
9 out.push((n as u8) | 128);
10 n >>= 7;
11 }
12 out.push(n as u8);
13}
14
15fn get(input: &mut &[u8]) -> Result<u64> {
16 let mut n = 0;

Callers 10

splitFunction · 0.70
valueMethod · 0.70
encodeFunction · 0.70
emitFunction · 0.70
valueMethod · 0.70
deltaFunction · 0.70
predict_kindsFunction · 0.70
restore_kindsFunction · 0.70

Calls 1

pushMethod · 0.45