WordPress\AiClientDependencies\Nyholm\Psr7

Stream::tellpublicWP 1.0

Method of the class: Stream{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Stream::tell() code WP 7.0

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;
}