MemorySlice.sliceCopy

Allocates a block of memory from the slice allocator and copies @block_size bytes into it from @mem_block.

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

Meta

Since

2.14