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

Function put

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

Source from the content-addressed store, hash-verified

83}
84
85pub(super) fn put(out: &mut Vec<u8>, mut n: u64) {
86 while n >= 128 {
87 out.push((n as u8) | 128);
88 n >>= 7;
89 }
90 out.push(n as u8);
91}
92
93pub(super) fn get(input: &mut &[u8]) -> FormatResult<u64> {
94 let mut n = 0;

Callers 11

writeMethod · 0.70
optional_branchMethod · 0.70
bytesMethod · 0.70
leavesMethod · 0.70
lineMethod · 0.70
columnsFunction · 0.70
fixtureFunction · 0.50
newMethod · 0.50
addMethod · 0.50
nMethod · 0.50
rejection_error_infoFunction · 0.50

Calls 1

pushMethod · 0.45

Tested by 1

newMethod · 0.40