function StreamWrapper::stream_read in X Autoload 7.3
Parameters
int $count: Number of characters to read.
Return value
string Snippet read from the file.
File
- tests/
Drupal/ xautoload/ Tests/ StreamWrapper.php, line 116
Class
- StreamWrapper
- Intercept calls to the filesystem, so we don't have to create fixture files.
Namespace
Drupal\xautoload\TestsCode
function stream_read($count) {
$ret = substr($this->contents, $this->position, $count);
$this->position += strlen($ret);
return $ret;
}