PHP Interface org\bovigo\vfs\content\FileContent

Since: 1.3.0
Datei anzeigen Open project: mikey179/vfsstream

Public Methods

Method Description
content ( ) : string returns actual content
eof ( ) : boolean checks whether pointer is at end of file
read ( integer $count ) : string reads the given amount of bytes from content
seek ( integer $offset, integer $whence ) : boolean seeks to the given offset
size ( ) : integer returns size of content
truncate ( integer $size ) : boolean Truncates a file to a given length
write ( string $data ) : amount writes an amount of data

Method Details

content() public method

returns actual content
public content ( ) : string
return string

eof() public method

checks whether pointer is at end of file
public eof ( ) : boolean
return boolean

read() public method

reads the given amount of bytes from content
public read ( integer $count ) : string
$count integer
return string

seek() public method

seeks to the given offset
public seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
return boolean

size() public method

returns size of content
public size ( ) : integer
return integer

truncate() public method

Truncates a file to a given length
public truncate ( integer $size ) : boolean
$size integer length to truncate file to
return boolean

write() public method

writes an amount of data
public write ( string $data ) : amount
$data string
return amount of written bytes