3 * This file is part of vfsStream.
5 * For the full copyright and license information, please view the LICENSE
6 * file that was distributed with this source code.
8 * @package org\bovigo\vfs
10 namespace org\bovigo\vfs\content;
12 * Interface for actual file contents.
19 * returns actual content
23 public function content();
26 * returns size of content
30 public function size();
33 * reads the given amount of bytes from content
38 public function read($count);
41 * seeks to the given offset
47 public function seek($offset, $whence);
50 * checks whether pointer is at end of file
54 public function eof();
57 * writes an amount of data
60 * @return amount of written bytes
62 public function write($data);
65 * Truncates a file to a given length
67 * @param int $size length to truncate file to
70 public function truncate($size);