protected function StringBasedFileContent::doWrite in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php \org\bovigo\vfs\content\StringBasedFileContent::doWrite()
actual writing of data with specified length at given offset
Parameters
string $data:
int $offset:
int $length:
Overrides SeekableFileContent::doWrite
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ content/ StringBasedFileContent.php, line 73
Class
- StringBasedFileContent
- Default implementation for file contents based on simple strings.
Namespace
org\bovigo\vfs\contentCode
protected function doWrite($data, $offset, $length) {
$this->content = substr($this->content, 0, $offset) . $data . substr($this->content, $offset + $length);
}