TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.86.4
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Since 2.10
Allocates a block of memory via g_slice_alloc() and initializes the returned memory to 0.
g_slice_alloc()
Since GLib 2.76 this always uses the system malloc() implementation internally.
malloc()
the number of bytes to allocate
a pointer to the allocated block, which will be null if and only if mem_size is 0
null
mem_size
2.10
Allocates a block of memory via
g_slice_alloc()and initializes the returned memory to 0.Since GLib 2.76 this always uses the system
malloc()implementation internally.