PHP Interface Kraken\Stream\StreamReaderInterface

Inheritance: extends Kraken\Event\EventEmitterInterface, extends Kraken\Stream\StreamSeekerInterface
Datei anzeigen Open project: kraken-php/framework

Public Methods

Method Description
getBufferSize ( ) : integer Get the current size of stream buffer.
isReadable ( ) : boolean Check if stream is readable.
read ( integer | null $length = null ) : string Read the contents of the string.
setBufferSize ( integer $bufferSize ) Set the size of stream buffer in bytes.

Method Details

getBufferSize() public method

Get the current size of stream buffer.
public getBufferSize ( ) : integer
return integer

isReadable() public method

Check if stream is readable.
public isReadable ( ) : boolean
return boolean

read() public method

Read the contents of the string. $length specifies maximum number of bytes read. If it is not set whole contents will be read.
public read ( integer | null $length = null ) : string
$length integer | null
return string

setBufferSize() public method

Set the size of stream buffer in bytes.
public setBufferSize ( integer $bufferSize )
$bufferSize integer