/** * Encode an integer as a fixed of 64bits with sign. * * @param \Protobuf\Stream $stream * @param integer $value */ public function writeSFixed64(Stream $stream, $value) { if ($value >= 0) { $this->writeFixed64($stream, $value); return; } $bytes = $this->negativeEncoder->encodeSFixed64($value); $this->writeBytes($stream, $bytes); }