whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
IO
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/IO/CloseSeekWriteStreamHandle.php
<?php declare(strict_types=1); namespace Psl\IO; use Psl\IO; /** * @codeCoverageIgnore */ final class CloseSeekWriteStreamHandle implements CloseSeekWriteStreamHandleInterface { use IO\WriteHandleConvenienceMethodsTrait; private CloseSeekWriteStreamHandleInterface $handle; /** * @param resource $stream */ public function __construct(mixed $stream) { $this->handle = new Internal\ResourceHandle($stream, read: false, write: true, seek: true, close: true); } /** * {@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 seek(int $offset): void { $this->handle->seek($offset); } /** * {@inheritDoc} */ public function tell(): int { return $this->handle->tell(); } /** * {@inheritDoc} */ public function close(): void { $this->handle->close(); } /** * {@inheritDoc} */ public function getStream(): mixed { return $this->handle->getStream(); } }
Copyright ©2021 || Defacer Indonesia