Your IP : 3.15.22.209


Current Path : /home/bitrix/ext_www/home-comfort.in.ua/bitrix/modules/pull/vendor/Protobuf/
Upload File :
Current File : /home/bitrix/ext_www/home-comfort.in.ua/bitrix/modules/pull/vendor/Protobuf/Serializer.php

<?php

namespace Protobuf;

/**
 * Protocol buffer serializer
 *
 * @author Fabio B. Silva <fabio.bat.silva@gmail.com>
 */
interface Serializer
{
    /**
     * Serializes the given message.
     *
     * @param \Protobuf\Message $message
     *
     * @return \Protobuf\Stream
     */
    public function serialize(Message $message);

    /**
     * Deserializes the given data to the specified message.
     *
     * @param string                           $class
     * @param \Protobuf\Stream|resource|string $stream
     *
     * @return \Protobuf\Message
     */
    public function unserialize($class, $stream);
}