MemorySlice.sliceCopy

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.

struct MemorySlice
static
void*
sliceCopy
(
size_t blockSize
,
void* memBlock
)

Parameters

blockSize size_t

the number of bytes to allocate

memBlock void*

the memory to copy

Return: a pointer to the allocated memory block, which will be %NULL if and only if @mem_size is 0

Meta

Since

2.14