xz_embedded_sys::xz_dec_reset [] [src]

pub unsafe extern fn xz_dec_reset(s: *mut xz_dec)

Reset an already allocated decoder state

@s: Decoder state allocated using xz_dec_init()

This function can be used to reset the multi-call decoder state without freeing and reallocating memory with xz_dec_end() and xz_dec_init().

In single-call mode, xz_dec_reset() is always called in the beginning of xz_dec_run(). Thus, explicit call to xz_dec_reset() is useful only in multi-call mode.