FrameReader
FinalYes
Constants
- COMPACT_THRESHOLD : int = 1048576
Methods
- __construct() : mixed
- chunkFiller() : callable(int): bool
- frames() : Generator<int, array{0: int, 1: string}>
Constants
COMPACT_THRESHOLD
public
int
COMPACT_THRESHOLD
= 1048576
Methods
__construct()
public
__construct(SourceStream $stream, int $expectedFlags[, int $chunkSize = 65536 ]) : mixed
Parameters
- $stream : SourceStream
- $expectedFlags : int
- $chunkSize : int = 65536
chunkFiller()
public
static chunkFiller(string &$buffer, int &$position, Generator<int, string> $chunks) : callable(int): bool
Parameters
- $buffer : string
- $position : int
- $chunks : Generator<int, string>
Return values
callable(int): boolframes()
public
frames([bool $lenient = false ]) : Generator<int, array{0: int, 1: string}>
Parameters
- $lenient : bool = false
Tags
Return values
Generator<int, array{0: int, 1: string}> —frame type and frame body