X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/guzzlehttp/psr7/src
home
/
cbholdings
/
pasukulu
/
lib
/
guzzlehttp
/
psr7
/
src
/
📁
..
📄
AppendStream.php
(5.84 KB)
📄
BufferStream.php
(3.17 KB)
📄
CachingStream.php
(4.48 KB)
📄
DroppingStream.php
(1.17 KB)
📁
Exception
📄
FnStream.php
(4.4 KB)
📄
Header.php
(3.84 KB)
📄
HttpFactory.php
(3.02 KB)
📄
InflateStream.php
(1.36 KB)
📄
LazyOpenStream.php
(926 B)
📄
LimitStream.php
(4.2 KB)
📄
Message.php
(8.13 KB)
📄
MessageTrait.php
(7.6 KB)
📄
MimeType.php
(52.9 KB)
📄
MultipartStream.php
(4.92 KB)
📄
NoSeekStream.php
(524 B)
📄
PumpStream.php
(4.5 KB)
📄
Query.php
(3.57 KB)
📄
Request.php
(3.81 KB)
📄
Response.php
(4.79 KB)
📄
Rfc7230.php
(665 B)
📄
ServerRequest.php
(9.37 KB)
📄
Stream.php
(7.23 KB)
📄
StreamDecoratorTrait.php
(3.28 KB)
📄
StreamWrapper.php
(4.01 KB)
📄
UploadedFile.php
(4.75 KB)
📄
Uri.php
(21.36 KB)
📄
UriComparator.php
(1.12 KB)
📄
UriNormalizer.php
(8.22 KB)
📄
UriResolver.php
(8.36 KB)
📄
Utils.php
(15.2 KB)
Editing: DroppingStream.php
<?php declare(strict_types=1); namespace GuzzleHttp\Psr7; use Psr\Http\Message\StreamInterface; /** * Stream decorator that begins dropping data once the size of the underlying * stream becomes too full. */ final class DroppingStream implements StreamInterface { use StreamDecoratorTrait; /** @var int */ private $maxLength; /** @var StreamInterface */ private $stream; /** * @param StreamInterface $stream Underlying stream to decorate. * @param int $maxLength Maximum size before dropping data. */ public function __construct(StreamInterface $stream, int $maxLength) { $this->stream = $stream; $this->maxLength = $maxLength; } public function write($string): int { $diff = $this->maxLength - $this->stream->getSize(); // Begin returning 0 when the underlying stream is too large. if ($diff <= 0) { return 0; } // Write the stream or a subset of the stream if needed. if (strlen($string) < $diff) { return $this->stream->write($string); } return $this->stream->write(substr($string, 0, $diff)); } }
Upload File
Create Folder