X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/guzzlehttp/psr7/src
home
/
prisjneg
/
public_html
/
vendor
/
guzzlehttp
/
psr7
/
src
/
📁
..
📄
AppendStream.php
(5.81 KB)
📄
BufferStream.php
(3.14 KB)
📄
CachingStream.php
(4.49 KB)
📄
DroppingStream.php
(1.17 KB)
📁
Exception
📄
FnStream.php
(4.21 KB)
📄
Header.php
(3.85 KB)
📄
HttpFactory.php
(3 KB)
📄
InflateStream.php
(1.38 KB)
📄
LazyOpenStream.php
(1.06 KB)
📄
LimitStream.php
(4.2 KB)
📄
Message.php
(8.14 KB)
📄
MessageTrait.php
(7.56 KB)
📄
MimeType.php
(53.75 KB)
📄
MultipartStream.php
(5.06 KB)
📄
NoSeekStream.php
(524 B)
📄
PumpStream.php
(4.49 KB)
📄
Query.php
(3.95 KB)
📄
Request.php
(3.82 KB)
📄
Response.php
(4.79 KB)
📄
Rfc7230.php
(661 B)
📄
ServerRequest.php
(9.33 KB)
📄
Stream.php
(7.21 KB)
📄
StreamDecoratorTrait.php
(3.24 KB)
📄
StreamWrapper.php
(4.53 KB)
📄
UploadedFile.php
(4.98 KB)
📄
Uri.php
(21.44 KB)
📄
UriComparator.php
(1.12 KB)
📄
UriNormalizer.php
(8.26 KB)
📄
UriResolver.php
(8.38 KB)
📄
Utils.php
(15.57 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