Function mupdf_sys::fz_unshare_stroke_state_with_dash_len[][src]

pub unsafe extern "C" fn fz_unshare_stroke_state_with_dash_len(
    ctx: *mut fz_context,
    shared: *mut fz_stroke_state,
    len: c_int
) -> *mut fz_stroke_state

Given a reference to a (possibly) shared stroke_state structure, return a reference to a stroke_state structure (with room for a given amount of dash data) that is guaranteed to be unshared (i.e. one that can safely be modified).

shared: The reference to a (possibly) shared structure to unshare. Ownership of this reference is passed in to this function, even in the case of exceptions being thrown.

Exceptions may be thrown in the event of failure to allocate if required.