public static function readSfixed64(&$input, &$value) { if (!self::readFixed64($input, $value)) { return false; } $value = Int64::newValue($value->high, $value->low); return true; }
public function testReadSfixed64() { $value = null; $input = new InputStream(hex2bin("1234567812345678")); GPBWire::readSfixed64($input, $value); $this->assertEquals(Int64::newValue(0x78563412, 0x78563412), $value); }