You are here

protected function StringBasedFileContent::doRead in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php \org\bovigo\vfs\content\StringBasedFileContent::doRead()

actual reading of length starting at given offset

Parameters

int $offset:

int $count:

Overrides SeekableFileContent::doRead

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php, line 61

Class

StringBasedFileContent
Default implementation for file contents based on simple strings.

Namespace

org\bovigo\vfs\content

Code

protected function doRead($offset, $count) {
  return substr($this->content, $offset, $count);
}