MemorySlice.alloc0

Allocates a block of memory via g_slice_alloc() and initializes the returned memory to 0. Note that the underlying slice allocation mechanism can be changed with the G_SLICE=always-malloc environment variable. Since 2.10

class MemorySlice
static
void*
alloc0

Parameters

blockSize gsize

the number of bytes to allocate

Return Value

Type: void*

a pointer to the allocated block

Meta