MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / next_char

Method next_char

debugger/src/reader.rs:298–307  ·  view source on GitHub ↗
(&self, c: u8)

Source from the content-addressed store, hash-verified

296 }
297
298 fn next_char(&self, c: u8) -> usize {
299 let mut q = self.cur;
300 while q < self.source.len() - 1 {
301 if self.source.get(q) == c {
302 break;
303 }
304 q += 1;
305 }
306 q
307 }
308
309 /// First, tokenize the binary stream.
310 /// Then, push some primitives onto the value stack.

Callers 1

next_tokenMethod · 0.80

Calls 2

lenMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected