Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StringBasedFileContent.php

function 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 (string) substr($this->content, $offset, $count);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal