WordPress\AiClientDependencies\Nyholm\Psr7

Stream::tell │ public │ WP 1.0

Метод класса: Stream{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Stream = new Stream();
$Stream->tell(): int;

Код Stream::tell() WP 7.1.2

public function tell(): int
{
    if (!isset($this->stream)) {
        throw new \RuntimeException('Stream is detached');
    }
    if (\false === $result = @\ftell($this->stream)) {
        throw new \RuntimeException('Unable to determine stream position: ' . (\error_get_last()['message'] ?? ''));
    }
    return $result;
}