Interface for actual file contents.

since 1.3.0

 Methods

returns actual content

content() : string

Returns

string

checks whether pointer is at end of file

eof() : bool

Returns

bool

reads the given amount of bytes from content

read(int $count) : string

Parameters

$count

int

Returns

string

seeks to the given offset

seek(int $offset, int $whence) : bool

Parameters

$offset

int

$whence

int

Returns

bool

returns size of content

size() : int

Returns

int

Truncates a file to a given length

truncate(int $size) : bool

Parameters

$size

int

length to truncate file to

Returns

bool

writes an amount of data

write(string $data) : \org\bovigo\vfs\content\amount

Parameters

$data

string

Returns

\org\bovigo\vfs\content\amountof written bytes