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

Method peek_byte

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

Source from the content-addressed store, hash-verified

1405 }
1406
1407 fn peek_byte(&self) -> Option<u8> {
1408 if self.pos < self.data.len() {
1409 Some(self.data[self.pos])
1410 } else {
1411 None
1412 }
1413 }
1414
1415 fn read_varint(&mut self) -> u32 {
1416 if let Some(first) = self.read_byte() {

Callers 1

advanceMethod · 0.45

Calls 2

SomeClass · 0.50
lenMethod · 0.45

Tested by

no test coverage detected