sliceCopy

fun sliceCopy(blockSize: <Error class: unknown class>, memBlock: <Error class: unknown class>? = null): <Error class: unknown class>?

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

Return

a pointer to the allocated memory block, which will be null if and only if @mem_size is 0

Since

2.14

Parameters

blockSize

the number of bytes to allocate

memBlock

the memory to copy