#[export_name = "deflatePending"]
pub unsafe extern "C-unwind" fn deflatePending(
strm: z_streamp,
pending: *mut c_uint,
bits: *mut c_int,
) -> c_int
Expand description
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 NULL
, then those values are not set.
§Returns
Z_OK
if successZ_STREAM_ERROR
if the source stream state was inconsistent
§Safety
The caller must guarantee that
- Either
strm
isNULL
strm
satisfies the requirements of&mut *strm
and was initialized withdeflateInit_
or similar
- Either
pending
isNULL
pending
satisfies the requirements ofcore::ptr::write::<c_int>
- Either
bits
isNULL
bits
satisfies the requirements ofcore::ptr::write::<c_int>