Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/IO/CloseReadWriteStreamHandle.php
Назад
<?php declare(strict_types=1); namespace Psl\IO; use Psl\IO; /** * @codeCoverageIgnore */ final class CloseReadWriteStreamHandle implements CloseReadWriteStreamHandleInterface { use IO\ReadHandleConvenienceMethodsTrait; use IO\WriteHandleConvenienceMethodsTrait; private CloseReadWriteStreamHandleInterface $handle; /** * @param resource $stream */ public function __construct(mixed $stream) { $this->handle = new Internal\ResourceHandle($stream, read: true, write: true, seek: false, close: true); } /** * {@inheritDoc} */ public function tryRead(?int $max_bytes = null): string { return $this->handle->tryRead($max_bytes); } /** * {@inheritDoc} */ public function read(?int $max_bytes = null, ?float $timeout = null): string { return $this->handle->read($max_bytes, $timeout); } /** * {@inheritDoc} */ public function tryWrite(string $bytes): int { return $this->handle->tryWrite($bytes); } /** * {@inheritDoc} */ public function write(string $bytes, ?float $timeout = null): int { return $this->handle->write($bytes, $timeout); } /** * {@inheritDoc} */ public function close(): void { $this->handle->close(); } /** * {@inheritDoc} */ public function getStream(): mixed { return $this->handle->getStream(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка