MCPcopy 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
55def fromZigZag(n):
56 return (n >> 1) ^ -(n & 1)
57
58
59def writeVarint(trans, n):

Callers 1

__readZigZagMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected