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
FRAME_FOOTER
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
stringframeHeader()
public
static frameHeader(int $type, int $bodyLength) : string
Parameters
- $type : int
- $bodyLength : int
Return values
stringheader()
public
static header(int $flags) : string
Parameters
- $flags : int
Return values
stringparseTrailer()
public
static parseTrailer(string $bytes) : int
Parameters
- $bytes : string
Tags
Return values
int —footer JSON length
trailer()
public
static trailer(int $footerLength) : string
Parameters
- $footerLength : int
Return values
stringvalidateCodecId()
public
static validateCodecId(int $codecId) : void
Parameters
- $codecId : int
Tags
validateHeader()
public
static validateHeader(string $bytes) : int
Parameters
- $bytes : string
Tags
Return values
int —header flags byte