You are here

public function StreamInterface::read in Auth0 Single Sign On 8.2

Read data from the stream.

Parameters

int $length Read up to $length bytes from the object and return: them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes.

Return value

string Returns the data read from the stream, or an empty string if no bytes are available.

Throws

\RuntimeException if an error occurs.

5 methods override StreamInterface::read()
AppendStream::read in vendor/guzzlehttp/psr7/src/AppendStream.php
Reads from all of the appended streams until the length is met or EOF.
BufferStream::read in vendor/guzzlehttp/psr7/src/BufferStream.php
Reads data from the buffer.
FnStream::read in vendor/guzzlehttp/psr7/src/FnStream.php
Read data from the stream.
PumpStream::read in vendor/guzzlehttp/psr7/src/PumpStream.php
Read data from the stream.
Stream::read in vendor/guzzlehttp/psr7/src/Stream.php
Read data from the stream.

File

vendor/psr/http-message/src/StreamInterface.php, line 134

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function read($length);