Hoa central
Public Member Functions | List of all members
Hoa\Stream\IStream\Bufferable Interface Reference
Inheritance diagram for Hoa\Stream\IStream\Bufferable:

Public Member Functions

 newBuffer ($callable=null, $size=null)
 
 flush ()
 
 deleteBuffer ()
 
 getBufferLevel ()
 
 getBufferSize ()
 

Detailed Description

Interface .

Interface for bufferable streams. It's complementary to native buffer support of Hoa (please, see StreamBuffer() methods). Classes implementing this interface are able to create nested buffers, flush them etc.

Definition at line 49 of file Bufferable.php.

Member Function Documentation

Hoa\Stream\IStream\Bufferable::deleteBuffer ( )

Delete buffer.

Returns
bool

Implemented in Hoa\Http\Response\Response, Hoa\File\File, and Hoa\Stringbuffer\Stringbuffer.

Hoa\Stream\IStream\Bufferable::flush ( )

Flush the buffer.

Returns
void

Implemented in Hoa\File\File, and Hoa\Stringbuffer\Stringbuffer.

Here is the caller graph for this function:

Hoa\Stream\IStream\Bufferable::getBufferLevel ( )

Get bufffer level.

Returns
int

Implemented in Hoa\Http\Response\Response, Hoa\File\File, and Hoa\Stringbuffer\Stringbuffer.

Hoa\Stream\IStream\Bufferable::getBufferSize ( )

Get buffer size.

Returns
int

Implemented in Hoa\Http\Response\Response, Hoa\File\File, and Hoa\Stringbuffer\Stringbuffer.

Hoa\Stream\IStream\Bufferable::newBuffer (   $callable = null,
  $size = null 
)

Start a new buffer. The callable acts like a light filter.

Parameters
mixed$callableCallable.
int$sizeSize.
Returns
int

Implemented in Hoa\Http\Response\Response, Hoa\File\File, and Hoa\Stringbuffer\Stringbuffer.


The documentation for this interface was generated from the following file: