OpenDOF Project
boolean(* DTLTransport::AddressCopy)(DTLTransport transport, uint32 size, void *addr)

This function is called after the library makes a shallow copy of a DOFAddress and its data.

If the transport requires a deeper copy of any data held by this new DOFAddress (e.g., pointers to data that are tied to the lifecycle of the original DOFAddress), then the transport must make the necessary in-place adjustments to the given data. Once this function returns, the copied DOFAddress (and anything to which it refers) must have its own lifecycle.

This callback may be NULL if a shallow PCRMem_Copy is sufficient to copy the address data (a deeper copy is not needed).

Parameters
transportThe Transport. This parameter will never be NULL.
sizeThe size of the address data.
addrThe shallow copy of the address data. Modifications must be made in-place. This parameter will never be NULL.
Return values
TRUEThe address was successfully copied.
FALSEThe address failed to be copied.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22