Flow PHP

Format

FinalYes

Constants

FRAME_BATCH  : int = 0x5
FRAME_FOOTER  : int = 0x6
FRAME_HEADER_LENGTH  : int = 5
HEADER_LENGTH  : int = 6
MAGIC  : string = 'FLOE'
TRAILER_LENGTH  : int = 8
VERSION  : int = 0x2

Methods

frame()  : string
frameHeader()  : string
header()  : string
parseTrailer()  : int
trailer()  : string
validateCodecId()  : void
validateHeader()  : int

Constants

FRAME_BATCH

public int FRAME_BATCH = 0x5
public int FRAME_FOOTER = 0x6

FRAME_HEADER_LENGTH

public int FRAME_HEADER_LENGTH = 5

HEADER_LENGTH

public int HEADER_LENGTH = 6

MAGIC

public string MAGIC = 'FLOE'

TRAILER_LENGTH

public int TRAILER_LENGTH = 8

VERSION

public int VERSION = 0x2

Methods

frame()

public static frame(int $type, string $body) : string
Parameters
$type : int
$body : string
Return values
string

frameHeader()

public static frameHeader(int $type, int $bodyLength) : string
Parameters
$type : int
$bodyLength : int
Return values
string

header()

public static header(int $flags) : string
Parameters
$flags : int
Return values
string

parseTrailer()

public static parseTrailer(string $bytes) : int
Parameters
$bytes : string
Tags
throws
FloeException
Return values
int —

footer JSON length

trailer()

public static trailer(int $footerLength) : string
Parameters
$footerLength : int
Return values
string

validateCodecId()

public static validateCodecId(int $codecId) : void
Parameters
$codecId : int
Tags
throws
FloeException

validateHeader()

public static validateHeader(string $bytes) : int
Parameters
$bytes : string
Tags
throws
FloeException
Return values
int —

header flags byte

On this page

Search results