Метод | Описание | |
---|---|---|
__construct ( resource $stream, integer $size = null ) | ||
__destruct ( ) | Closes the stream when the destructed | |
__toString ( ) | ||
create ( ) : |
Create a new stream. | |
eof ( ) : boolean | Returns true if the stream is at the end of the stream. | |
fromString ( string $resource = '', integer $size = null ) : |
Create a new stream from a string. | |
getContents ( ) : string | Returns the remaining contents of the stream as a string. | |
getSize ( ) : integer | null | Get the size of the stream | |
read ( integer $length ) : string | Read data from the stream | |
readStream ( integer $length ) : |
Read stream | |
seek ( integer $offset, integer $whence = SEEK_SET ) | Seek to a position in the stream | |
tell ( ) : integer | Returns the current position of the file read/write pointer | |
wrap ( |
Wrap the input resource in a stream object. | |
write ( string $bytes, integer $length ) : integer | Write data to the stream | |
writeStream ( |
Write stream |
public __construct ( resource $stream, integer $size = null ) | ||
$stream | resource | |
$size | integer |
public static create ( ) : |
||
Результат |
public static fromString ( string $resource = '', integer $size = null ) : |
||
$resource | string | |
$size | integer | |
Результат |
public getContents ( ) : string | ||
Результат | string |
public readStream ( integer $length ) : |
||
$length | integer | |
Результат |
public writeStream ( |
||
$stream | ||
$length | integer | |
Результат | integer |