Function openjpeg_sys::opj_stream_set_user_data

source ยท
pub unsafe extern "C" fn opj_stream_set_user_data(
    p_stream: *mut opj_stream_t,
    p_data: *mut c_void,
    p_function: opj_stream_free_user_data_fn,
)
Expand description

Sets the given data to be used as a user data for the stream.

  • p_stream โ€” the stream to modify
  • p_data โ€” the data to set.
  • p_function โ€” the function to free p_data when opj_stream_destroy() is called.