pub unsafe extern "C" fn compression_stream_process(
stream: *mut compression_stream,
status: c_int,
) -> compression_statusExpand description
Performs compression or decompression using an initialized compression stream structure.
§Arguments
stream- A pointer to an allocated and fully initializedcompression_streamstructure.flags- A constant of typecompression_stream_flags; this should becompression_stream_flags::COMPRESSION_STREAM_FINALIZEif there is no further input data, or 0 otherwise.
§Returns
A value of type compression_status, interpreted as follows:
compression_status::OK- Processing was successful, but the stream may produce more output. Call the function again with updated parameters.compression_status::ERROR- Processing was successful, and the stream will produce no more output (this only occurs if flags is set tocompression_stream_flags::COMPRESSION_STREAM_FINALIZE).compression_status::END- An error occurred.