atomicRcBoxDup

fnvoid * atomicRcBoxDup(size_t blockSize, const(void) * memBlock)

Allocates a new block of data with atomic reference counting semantics, and copies block_size bytes of mem_block into it.

Parameters

blockSizethe number of bytes to copy, must be greater than 0
memBlockthe memory to copy

Returns

a pointer to the allocated

memory