atomicRcBoxDup

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

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

Parameters

blockSize size_t

the number of bytes to copy, must be greater than 0

memBlock const(void)*

the memory to copy

Return Value

Type: void*

a pointer to the allocated memory