Defines a signature for a set of function that are used to duplicate the content provided at the first parameter, returning a copy.

This handler definition is used by:

Parameters:
ptr The data to duplicate.
Returns:
A newly allocated data duplicated.