[][src]Function compu_brotli_sys::BrotliEncoderSetParameter

pub unsafe extern "C" fn BrotliEncoderSetParameter(
    state: *mut BrotliEncoderState,
    param: BrotliEncoderParameter,
    value: u32
) -> c_int

Sets the specified parameter to the given encoder instance.

@param state encoder instance @param param parameter to set @param value new parameter value @returns ::BROTLI_FALSE if parameter is unrecognized, or value is invalid @returns ::BROTLI_FALSE if value of parameter can not be changed at current encoder state (e.g. when encoding is started, window size might be already encoded and therefore it is impossible to change it) @returns ::BROTLI_TRUE if value is accepted @warning invalid values might be accepted in case they would not break encoding process.