XSClassCallbackCopy Reference

File
XSFoundation/include/XS/Types/XSClassCallbackCopy.h
Author
Jean-David Gadina - www.xs-labs.com
Copyright
© (c) 2020 - Jean-David Gadina - www.xs-labs.com
Date
Sunday, September 27, 2020

Overview

XSClassCallbackCopy type definition

Types

XSClassCallbackCopy

Class copy callback

typedef XSMutableObjectRef ( *XSClassCallbackCopy )( XSObjectRef source, XSMutableObjectRef destination );

Discussion

The 'destination' parameter is an allocated object, without a constructor call. The return value is usually 'destination', but can be another object. If NULL is returned, 'destination' will be deallocated by the caller automatically.

Parameters
  • source
    The object to copy
  • destination
    The object beeing copied
Return value

The copied object