Flow PHP

FrameWriter

FinalYes

Methods

__construct()  : mixed
close()  : void
flush()  : void
footer()  : void
frame()  : void
header()  : void
position()  : int
raw()  : void
Complete frames the caller already built, appended as they are.

Methods

__construct()

public __construct(DestinationStream $stream, int $codecId[, int $bufferSize = 65536 ][, int $startPosition = 0 ]) : mixed
Parameters
$stream : DestinationStream
$codecId : int
$bufferSize : int = 65536
$startPosition : int = 0
public footer(string $footerJson) : void
Parameters
$footerJson : string

frame()

public frame(int $type, string $body) : void
Parameters
$type : int
$body : string

position()

public position() : int
Return values
int

raw()

Complete frames the caller already built, appended as they are.

public raw(string $bytes) : void
Parameters
$bytes : string
On this page

Search results