MCPcopy Index your code
hub / github.com/RustPython/RustPython / read_byte

Method read_byte

crates/vm/src/builtins/code.rs:1397–1405  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1395 }
1396
1397 fn read_byte(&mut self) -> Option<u8> {
1398 if self.pos < self.data.len() {
1399 let byte = self.data[self.pos];
1400 self.pos += 1;
1401 Some(byte)
1402 } else {
1403 None
1404 }
1405 }
1406
1407 fn peek_byte(&self) -> Option<u8> {
1408 if self.pos < self.data.len() {

Callers 4

advanceMethod · 0.45
get_line_deltaMethod · 0.45
co_positionsMethod · 0.45
read_varintMethod · 0.45

Calls 2

SomeClass · 0.50
lenMethod · 0.45

Tested by

no test coverage detected