Skip to main content

FLDict_MutableCopy

Function FLDict_MutableCopy 

Source
pub unsafe extern "C" fn FLDict_MutableCopy(
    source: FLDict,
    arg1: FLCopyFlags,
) -> FLMutableDict
Expand description

Creates a new mutable Dict that’s a copy of the source Dict. Its initial ref-count is 1, so a call to FLMutableDict_Release will free it.

Copying an immutable Dict is very cheap (only one small allocation.) The deepCopy flag is ignored.

Copying a mutable Dict is cheap if it’s a shallow copy, but if deepCopy is true, nested mutable Dicts and Arrays are also copied, recursively.

If the source dict is NULL, then NULL is returned.