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

Method r_long64

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

Source from the content-addressed store, hash-verified

120 return x
121
122 def r_long64(self) -> int:
123 buf = self.r_string(8)
124 x = buf[0]
125 x |= buf[1] << 8
126 x |= buf[2] << 16
127 x |= buf[3] << 24
128 x |= buf[4] << 32
129 x |= buf[5] << 40
130 x |= buf[6] << 48
131 x |= buf[7] << 56
132 x |= -(x & (1<<63)) # Sign-extend
133 return x
134
135 def r_PyLong(self) -> int:
136 n = self.r_long()

Callers 1

_r_objectMethod · 0.95

Calls 1

r_stringMethod · 0.95

Tested by

no test coverage detected