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

Method read_signed_varint

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

Source from the content-addressed store, hash-verified

1433 }
1434
1435 fn read_signed_varint(&mut self) -> i32 {
1436 let uval = self.read_varint();
1437 if uval & 1 != 0 {
1438 -((uval >> 1) as i32)
1439 } else {
1440 (uval >> 1) as i32
1441 }
1442 }
1443
1444 fn at_end(&self) -> bool {
1445 self.pos >= self.data.len()

Callers 2

get_line_deltaMethod · 0.80
co_positionsMethod · 0.80

Calls 1

read_varintMethod · 0.80

Tested by

no test coverage detected