Function openjpeg_sys::opj_stream_set_user_data [−][src]
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 modifyp_data
— the data to set.p_function
— the function to free p_data when opj_stream_destroy() is called.