opj_stream_set_user_data

Function 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.

ยงArguments

  • 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.