PHP 클래스 React\Stream\Stream

상속: extends Evenement\EventEmitter, implements React\Stream\ReadableStreamInterface, implements React\Stream\WritableStreamInterface
파일 보기 프로젝트 열기: reactphp/stream 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$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