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

Method length

atomic-core/src/change/format_v3/semantic/predictive/mod.rs:105–110  ·  view source on GitHub ↗
(&mut self, tail: &[u8])

Source from the content-addressed store, hash-verified

103 self.kinds.available()
104 }
105 pub fn length(&mut self, tail: &[u8]) -> FormatResult<usize> {
106 match self.lengths.actual()? {
107 Some(n) => number(n),
108 None => Ok(predictor_v1::length(tail)),
109 }
110 }
111 pub fn kind(&mut self, bytes: &[u8]) -> FormatResult<TokenKind> {
112 match self.kinds.actual()? {
113 Some(n) => {

Callers 1

bytesMethod · 0.80

Calls 3

numberFunction · 0.85
lengthFunction · 0.85
actualMethod · 0.80

Tested by

no test coverage detected