Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ r_short
Method
r_short
tools/python-3.11.9-amd64/Tools/scripts/umarshal.py:106–111 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
104
return
buf[0]
105
106
def
r_short(self) -> int:
107
buf = self.r_string(2)
108
x = buf[0]
109
x |= buf[1] << 8
110
x |= -(x & (1<<15))
# Sign-extend
111
return
x
112
113
def
r_long(self) -> int:
114
buf = self.r_string(4)
Callers
1
r_PyLong
Method · 0.95
Calls
1
r_string
Method · 0.95
Tested by
no test coverage detected