FOF30\Utils\Buffer::stream_read PHP Method

stream_read() public method

Read stream
See also: streamWrapper::stream_read
Since: 11.1
public stream_read ( integer $count ) : mixed
$count integer How many bytes of data from the current position should be returned.
return mixed The data from the stream up to the specified number of bytes (all data if the total number of bytes in the stream is less than $count. Null if the stream is empty.
    public function stream_read($count)
    {
        $ret = substr(static::$buffers[$this->name], $this->position, $count);
        $this->position += strlen($ret);
        return $ret;
    }