Allocates a new block of data with atomic reference counting semantics, and copies block_size bytes of mem_block into it.
the number of bytes to copy, must be greater than 0
the memory to copy
a pointer to the allocated memory
Allocates a new block of data with atomic reference counting semantics, and copies block_size bytes of mem_block into it.