PHP Class pchStringStream, php-commit-hooks

Afficher le fichier Open project: kore/php-commit-hooks

Protected Properties

Свойство Type Description
$length integer Cached length of the string
$position integer Current position inside the string
$string string String, wrapped by the stream

Méthodes publiques

Méthode Description
stream_eof ( ) : boolean Has the stream reached its end?
stream_open ( string $path, string $mode, mixed $options, mixed &$opened_path ) : boolean Open stream
stream_read ( integer $count ) : string Read from stream
stream_seek ( integer $offset, integer $whence ) : boolean Seek to a defined position in the string
stream_stat ( ) : void Returns information about the stream
stream_tell ( ) : integer Tell current stream position
stream_write ( string $data ) : integer Write to stream

Method Details

stream_eof() public méthode

Has the stream reached its end?
public stream_eof ( ) : boolean
Résultat boolean

stream_open() public méthode

Open stream
public stream_open ( string $path, string $mode, mixed $options, mixed &$opened_path ) : boolean
$path string
$mode string
$options mixed
$opened_path mixed
Résultat boolean

stream_read() public méthode

Read from stream
public stream_read ( integer $count ) : string
$count integer
Résultat string

stream_seek() public méthode

Seek to a defined position in the string
public stream_seek ( integer $offset, integer $whence ) : boolean
$offset integer
$whence integer
Résultat boolean

stream_stat() public méthode

Returns information about the stream
public stream_stat ( ) : void
Résultat void

stream_tell() public méthode

Tell current stream position
public stream_tell ( ) : integer
Résultat integer

stream_write() public méthode

Write to stream
public stream_write ( string $data ) : integer
$data string
Résultat integer

Property Details

$length protected_oe property

Cached length of the string
protected int $length
Résultat integer

$position protected_oe property

Current position inside the string
protected int $position
Résultat integer

$string protected_oe property

String, wrapped by the stream
protected string $string
Résultat string