PHP Класс React\Stream\Stream

Наследование: extends Evenement\EventEmitter, implements React\Stream\ReadableStreamInterface, implements React\Stream\WritableStreamInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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)

Свойство Тип Описание
$buffer
$closing
$loop
$readable
$writable

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный Метод

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

close() публичный Метод

public close ( )

end() публичный Метод

public end ( $data = null )

getBuffer() публичный Метод

public getBuffer ( )

handleClose() публичный Метод

public handleClose ( )

handleData() публичный Метод

public handleData ( $stream )

isReadable() публичный Метод

public isReadable ( )

isWritable() публичный Метод

public isWritable ( )

pause() публичный Метод

public pause ( )

pipe() публичный Метод

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

resume() публичный Метод

public resume ( )

write() публичный Метод

public write ( $data )

Описание свойств

$buffer защищенное свойство

protected $buffer

$bufferSize публичное свойство

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
Результат integer | null

$closing защищенное свойство

protected $closing

$loop защищенное свойство

protected $loop

$readable защищенное свойство

protected $readable

$stream публичное свойство

public $stream

$writable защищенное свойство

protected $writable