rcBoxDup

fun rcBoxDup(blockSize: <Error class: unknown class>, memBlock: <Error class: unknown class>): <Error class: unknown class>

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

Return

a pointer to the allocated memory

Since

2.58

Parameters

blockSize

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

memBlock

the memory to copy