pub unsafe extern "C-unwind" fn deflateEnd(strm: *mut z_stream) -> i32Expand description
Deallocates all dynamically allocated data structures for this stream.
This function discards any unprocessed input and does not flush any pending output.
§Returns
Z_OKif successZ_STREAM_ERRORif the stream state was inconsistentZ_DATA_ERRORif the stream was freed prematurely (some input or output was discarded)
In the error case, strm.msg may be set but then points to a static string (which must not be deallocated).
§Safety
- Either
strmisNULLstrmsatisfies the requirements of&mut *strmand was initialized withdeflateInit_or similar