Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/thrift
/ fromZigZag
Method
fromZigZag
lib/php/lib/Protocol/TCompactProtocol.php:113–116 ·
view source on GitHub ↗
($n)
Source
from the content-addressed store, hash-verified
111
}
112
113
public function fromZigZag($n)
114
{
115
return ($n >> 1) ^ -($n & 1);
116
}
117
118
public function getVarint($data)
119
{
Callers
2
readZigZag
Method · 0.95
testFromZigZag
Method · 0.45
Calls
no outgoing calls
Tested by
1
testFromZigZag
Method · 0.36