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

Method read

atomic-core/src/change/format_v3/graph_fields/wire.rs:65–69  ·  view source on GitHub ↗
(&mut self, input: &mut &[u8])

Source from the content-addressed store, hash-verified

63 self.0 = n;
64 }
65 pub fn read(&mut self, input: &mut &[u8]) -> FormatResult<u64> {
66 let z = get(input)?;
67 self.0 = self.0.wrapping_add((z >> 1) ^ 0u64.wrapping_sub(z & 1));
68 Ok(self.0)
69 }
70}
71#[derive(Serialize)]
72pub(super) struct Column {

Callers 1

nMethod · 0.45

Calls 1

getFunction · 0.70

Tested by

no test coverage detected