if and only if mem_size is 0
sliceAlloc0
fn
void * sliceAlloc0(size_t blockSize)Allocates a block of memory via [glib.global.sliceAlloc] and initializes the returned memory to 0.
Since GLib 2.76 this always uses the system malloc() implementation internally.
Parameters
blockSize | the number of bytes to allocate |
Returns
a pointer to the allocated block, which will be null