public function FnStream::read in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/src/FnStream.php \GuzzleHttp\Psr7\FnStream::read()
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 135
Class
- FnStream
- Compose stream implementations based on a hash of functions.
Namespace
GuzzleHttp\Psr7Code
public function read($length) {
return call_user_func($this->_fn_read, $length);
}