Property | 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 |
Property | Type | Description | |
---|---|---|---|
$buffer | |||
$closing | |||
$loop | |||
$readable | |||
$writable |
Method | 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 ) |
public __construct ( $stream, React\EventLoop\LoopInterface $loop ) | ||
$loop | React\EventLoop\LoopInterface |