• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/channelstatsresponse.php
  • Класс: BitrixPullProtobufChannelStatsResponse
  • Вызов: ChannelStatsResponse::toStream
public function toStream(ProtobufConfiguration $configuration = null)
    {
        $config  = $configuration ?: ProtobufConfiguration::getInstance();
        $context = $config->createWriteContext();
        $stream  = $context->getStream();

        $this->writeTo($context);
        $stream->seek(0);

        return $stream;
    }