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

Method read_int

debugger/src/reader.rs:53–59  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

51 }
52
53 pub fn read_int(&mut self) -> Option<u64> {
54 match self.source.next_token() {
55 Some(Token::Int(i)) => Some(i),
56 Some(other) => panic!("Expected Integer, got {other:?}"),
57 None => None,
58 }
59 }
60
61 pub fn set_source(&mut self, source: Bytes, offset: usize) {
62 self.source.set_source(source, offset)

Callers 1

read_fromMethod · 0.80

Calls 1

next_tokenMethod · 0.80

Tested by

no test coverage detected