memory
rcBoxDup
fn
void * rcBoxDup(size_t blockSize, const(void) * memBlock)Allocates a new block of data with reference counting semantics, and copies block_size bytes of mem_block into it.
Parameters
blockSize | the number of bytes to copy, must be greater than 0 |
memBlock | the memory to copy |
Returns
a pointer to the allocated