yii\mongodb\file\StreamWrapper::stream_read PHP Method

stream_read() public method

This method is called in response to fread() and fgets().
See also: fread()
public stream_read ( integer $count ) : string | false
$count integer count of bytes of data from the current position should be returned.
return string | false if there are less than count bytes available, return as many as are available. If no more data is available, return `false`.
    public function stream_read($count)
    {
        if ($this->download === null) {
            return false;
        }
        $result = $this->download->substr($this->pointerOffset, $count);
        $this->pointerOffset += $count;
        return $result;
    }