Neos\Flow\ResourceManagement\Streams\StreamWrapperInterface::read PHP Метод

read() публичный Метод

This method is called in response to fread() and fgets(). Note: Remember to update the read/write position of the stream (by the number of bytes that were successfully read).
public read ( integer $count ) : string
$count integer How many bytes of data from the current position should be returned.
Результат string If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string.
    public function read($count);

Usage Example

 /**
  * Read from stream.
  *
  * This method is called in response to fread() and fgets().
  *
  * Note: Remember to update the read/write position of the stream (by the
  * number of bytes that were successfully read).
  *
  * @param integer $count How many bytes of data from the current position should be returned.
  * @return string If there are less than count bytes available, return as many as are available. If no more data is available, return either FALSE or an empty string.
  */
 public function stream_read($count)
 {
     return $this->streamWrapper->read($count);
 }