MemorySlice.copy

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

class MemorySlice
static
void*
copy

Parameters

blockSize gsize

the number of bytes to allocate

memBlock void*

the memory to copy

Return Value

Type: void*

a pointer to the allocated memory block

Meta