pub unsafe extern "C" fn compression_stream_process(
stream: *mut compression_stream,
status: c_int,
) -> compression_status
Expand description
Performs compression or decompression using an initialized compression stream structure.
§Arguments
stream
- A pointer to an allocated and fully initializedcompression_stream
structure.flags
- A constant of typecompression_stream_flags
; this should becompression_stream_flags::COMPRESSION_STREAM_FINALIZE
if 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.