• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/stream.php
  • Класс: BitrixMainWebHttpStream
  • Вызов: Stream::tell
public function tell(): int
{
	if (!$this->resource)
	{
		throw new RuntimeException('No resource available, cannot tell position.');
	}

	$result = ftell($this->resource);
	if ($result === false)
	{
		throw new RuntimeException('Error occurred during tell operation.');
	}

	return $result;
}