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
close()
public
close() : void
flush()
public
flush() : void
footer()
public
footer(string $footerJson) : void
Parameters
- $footerJson : string
frame()
public
frame(int $type, string $body) : void
Parameters
- $type : int
- $body : string
header()
public
header() : void
position()
public
position() : int
Return values
intraw()
Complete frames the caller already built, appended as they are.
public
raw(string $bytes) : void
Parameters
- $bytes : string