Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
zlib::deflate_stream::pending

Return bits pending in the output.

Synopsis
void
pending(
    unsigned* value,
    int* bits);
Description

This function returns the number of bytes and bits of output that have been generated, but not yet provided in the available output. The bytes not provided would be due to the available output space having being consumed. The number of bits of output not provided are between 0 and 7, where they await more bits to join them in order to fill out a full byte. If pending or bits are nullptr, then those values are not set.

Return Value

Z_OK if success, or Z_STREAM_ERROR if the source stream state was inconsistent.


PrevUpHomeNext