Flow PHP

MemoryBuffer implements Transport

A memory buffer is a transport that simply reads from and writes to an in-memory string buffer. Anytime you call write on it, the data is simply placed into a buffer, and anytime you call read, data is read from that buffer.

Interfaces

Transport

Methods

__construct()  : mixed
Constructor. Optionally pass an initial value for the buffer.
available()  : int
close()  : void
data()  : string
isOpen()  : bool
open()  : void
read()  : string
write()  : void

Methods

__construct()

Constructor. Optionally pass an initial value for the buffer.

public __construct([string $data = '' ]) : mixed
Parameters
$data : string = ''

read()

public read(int $len) : string
Parameters
$len : int
Return values
string

write()

public write(string $buf) : void
Parameters
$buf : string

        
On this page

Search results