• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/protobuf/request.php
  • Класс: BitrixPullProtobufRequest
  • Вызов: Request::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;
    }