Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/thrift
/ fromZigZag
Function
fromZigZag
lib/py/src/protocol/TCompactProtocol.py:55–56 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
53
54
55
def
fromZigZag(n):
56
return
(n >> 1) ^ -(n & 1)
57
58
59
def
writeVarint(trans, n):
Callers
1
__readZigZag
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected