Dechunk
class Dechunk extends Stream (View source)
A stream decoding data encoded with chunked transfer encoding.
Constants
FLUSH_NONE |
Do no intermittent flushes. |
FLUSH_SYNC |
Flush at appropriate transfer points. |
FLUSH_FULL |
Flush at each IO operation. |
Methods
string|false
decode(string $data, int $decoded_len = 0)
Decode chunked encoded data.
Details
__construct(int $flags = 0)
Base constructor for encoding stream implementations.
bool
done()
Check whether the encoding stream is already done.
string
finish()
Finish and reset the encoding stream.
Returns any pending data.
string
flush()
Flush the encoding stream.
Returns any pending data.
string
update(string $data)
Update the encoding stream with more input.
string|false
decode(string $data, int $decoded_len = 0)
Decode chunked encoded data.