PHP Class React\Stream\Stream

Inheritance: extends Evenement\EventEmitter, implements React\Stream\ReadableStreamInterface, implements React\Stream\WritableStreamInterface
Afficher le fichier Open project: reactphp/stream Class Usage Examples

Méthodes publiques

Свойство Type Description
$bufferSize integer | null This can be a positive number which means that up to X bytes will be read at once from the underlying stream resource. Note that the actual number of bytes read may be lower if the stream resource has less than X bytes currently available. This can be null which means read everything available from the underlying stream resource. This should read until the stream resource is not readable anymore (i.e. underlying buffer drained), note that this does not neccessarily mean it reached EOF.
$stream

Protected Properties

Свойство Type Description
$buffer
$closing
$loop
$readable
$writable

Méthodes publiques

Méthode Description
__construct ( $stream, React\EventLoop\LoopInterface $loop )
close ( )
end ( $data = null )
getBuffer ( )
handleClose ( )
handleData ( $stream )
isReadable ( )
isWritable ( )
pause ( )
pipe ( React\Stream\WritableStreamInterface $dest, array $options = [] )
resume ( )
write ( $data )

Method Details

__construct() public méthode

public __construct ( $stream, React\EventLoop\LoopInterface $loop )
$loop React\EventLoop\LoopInterface

close() public méthode

public close ( )

end() public méthode

public end ( $data = null )

getBuffer() public méthode

public getBuffer ( )

handleClose() public méthode

public handleClose ( )

handleData() public méthode

public handleData ( $stream )

isReadable() public méthode

public isReadable ( )

isWritable() public méthode

public isWritable ( )

pause() public méthode

public pause ( )

pipe() public méthode

public pipe ( React\Stream\WritableStreamInterface $dest, array $options = [] )
$dest React\Stream\WritableStreamInterface
$options array

resume() public méthode

public resume ( )

write() public méthode

public write ( $data )

Property Details

$buffer protected_oe property

protected $buffer

$bufferSize public_oe property

This can be a positive number which means that up to X bytes will be read at once from the underlying stream resource. Note that the actual number of bytes read may be lower if the stream resource has less than X bytes currently available. This can be null which means read everything available from the underlying stream resource. This should read until the stream resource is not readable anymore (i.e. underlying buffer drained), note that this does not neccessarily mean it reached EOF.
public int|null $bufferSize
Résultat integer | null

$closing protected_oe property

protected $closing

$loop protected_oe property

protected $loop

$readable protected_oe property

protected $readable

$stream public_oe property

public $stream

$writable protected_oe property

protected $writable