Home
last modified time | relevance | path

Searched refs:zigZagEncode64 (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/php/tests/
Dphp_implementation_test.php235 $this->assertSame('0', GPBWire::zigZagEncode64(0));
236 $this->assertSame('1', GPBWire::zigZagEncode64(-1));
237 $this->assertSame('2', GPBWire::zigZagEncode64(1));
238 $this->assertSame('3', GPBWire::zigZagEncode64(-2));
241 GPBWire::zigZagEncode64(0x3FFFFFFF));
244 GPBWire::zigZagEncode64(-1073741824)); // 0xFFFFFFFFC0000000
247 GPBWire::zigZagEncode64(2147483647)); // 0x7FFFFFFF
250 GPBWire::zigZagEncode64(-2147483648)); // 0xFFFFFFFF80000000
254 GPBWire::zigZagEncode64("9223372036854775807"));
258 GPBWire::zigZagEncode64("-9223372036854775808"));
[all …]
/external/protobuf/php/src/Google/Protobuf/Internal/
DGPBWire.php140 public static function zigZagEncode64($int64) function in Google\\Protobuf\\Internal\\GPBWire
328 $value = GPBWire::zigZagEncode64($value);
439 $value = self::zigZagEncode64($value);