inflate_get_read_len

Get number of bytes read so far

Description

int inflate_get_read_len(InflateContext $context)

Returns the number of compressed bytes read so far from the current stream. The count is reset to 0 by the first call to inflate_add after the previous stream has ended.

Parameters

context
A context created with inflate_init.

Return Values

Returns the number of bytes read so far from the current stream.

Changelog

Version Description
8.0.0 context expects an InflateContext instance now; previously, a resource was expected.