public function SeekableFileContent::read in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/SeekableFileContent.php \org\bovigo\vfs\content\SeekableFileContent::read()
reads the given amount of bytes from content
Parameters
int $count:
Return value
string
Overrides FileContent::read
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ content/ SeekableFileContent.php, line 31
Class
- SeekableFileContent
- Default implementation for file contents based on simple strings.
Namespace
org\bovigo\vfs\contentCode
public function read($count) {
$data = $this
->doRead($this->offset, $count);
$this->offset += $count;
return $data;
}