Function mupdf_sys::fz_clone_path
source · pub unsafe extern "C" fn fz_clone_path(
ctx: *mut fz_context,
path: *mut fz_path
) -> *mut fz_path
Expand description
Clone the data for a path.
This is used in preference to fz_keep_path when a whole new copy of a path is required, rather than just a shared pointer. This probably indicates that the path is about to be modified.
path: path to clone.
Throws exceptions on failure to allocate.