WordPress\AiClientDependencies\Nyholm\Psr7
Stream::getSize
Метод класса: Stream{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Stream = new Stream(); $Stream->getSize(): ?int;
Код Stream::getSize() Stream::getSize WP 7.1.2
public function getSize(): ?int
{
if (null !== $this->size) {
return $this->size;
}
if (!isset($this->stream)) {
return null;
}
// Clear the stat cache if the stream has a URI
if ($uri = $this->getUri()) {
\clearstatcache(\true, $uri);
}
$stats = \fstat($this->stream);
if (isset($stats['size'])) {
$this->size = $stats['size'];
return $this->size;
}
return null;
}