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

Method n

atomic-core/src/change/format_v3/semantic/predictive/encode.rs:42–46  ·  view source on GitHub ↗
(&mut self, role: usize)

Source from the content-addressed store, hash-verified

40}
41impl Encoder<'_> {
42 fn n(&mut self, role: usize) -> FormatResult<u64> {
43 let n = get(&mut self.input)?;
44 put(&mut self.controls[role], n);
45 Ok(n)
46 }
47 fn flag(&mut self, role: usize) -> FormatResult<()> {
48 if self.n(role)? > 1 {
49 return Err(invalid("predictive presence flag"));

Callers 5

flagMethod · 0.45
countMethod · 0.45
bytesMethod · 0.45
leavesMethod · 0.45
runMethod · 0.45

Calls 2

getFunction · 0.50
putFunction · 0.50

Tested by

no test coverage detected