You are here

public function StringBasedFileContent::size 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::size()

returns size of content

Return value

int

Overrides FileContent::size

1 call to StringBasedFileContent::size()
StringBasedFileContent::truncate in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php
Truncates a file to a given length

File

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

Class

StringBasedFileContent
Default implementation for file contents based on simple strings.

Namespace

org\bovigo\vfs\content

Code

public function size() {
  return strlen($this->content);
}