which will be null if and only if mem_size is 0
sliceCopy
fn
void * sliceCopy(size_t blockSize, const(void) * memBlock = null)Allocates a block of memory from the slice allocator and copies block_size bytes into it from mem_block.
mem_block must be non-null if block_size is non-zero.
Since GLib 2.76 this always uses the system malloc() implementation internally.
Parameters
blockSize | the number of bytes to allocate |
memBlock | the memory to copy |
Returns
a pointer to the allocated memory block,