You are here

public function FnStream::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.

Overrides StreamInterface::read

File

vendor/guzzlehttp/psr7/src/FnStream.php, line 144

Class

FnStream
Compose stream implementations based on a hash of functions.

Namespace

GuzzleHttp\Psr7

Code

public function read($length) {
  return call_user_func($this->_fn_read, $length);
}