YoastSEO_Vendor\GuzzleHttp\Psr7
LimitStream::read() public Yoast 1.0
{} Это метод класса: LimitStream{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$LimitStream = new LimitStream(); $LimitStream->read( $length );
Код LimitStream::read() LimitStream::read Yoast 15.6.2
public function read($length)
{
if ($this->limit == -1) {
return $this->stream->read($length);
}
// Check if the current position is less than the total allowed
// bytes + original offset
$remaining = $this->offset + $this->limit - $this->stream->tell();
if ($remaining > 0) {
// Only return the amount of requested data, ensuring that the byte
// limit is not exceeded
return $this->stream->read(\min($remaining, $length));
}
return '';
}