MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / r_PyLong

Method r_PyLong

tools/python-3.11.9-amd64/Tools/scripts/umarshal.py:135–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

133 return x
134
135 def r_PyLong(self) -> int:
136 n = self.r_long()
137 size = abs(n)
138 x = 0
139 # Pray this is right
140 for i in range(size):
141 x |= self.r_short() << i*15
142 if n < 0:
143 x = -x
144 return x
145
146 def r_float_bin(self) -> float:
147 buf = self.r_string(8)

Callers 1

_r_objectMethod · 0.95

Calls 3

r_longMethod · 0.95
r_shortMethod · 0.95
absFunction · 0.50

Tested by

no test coverage detected