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.14
Allocates a block of memory from the slice allocator and copies block_size bytes into it from mem_block.
block_size
mem_block
mem_block must be non-null if block_size is non-zero.
null
Since GLib 2.76 this always uses the system malloc() implementation internally.
malloc()
the number of bytes to allocate
Optional
the memory to copy
a pointer to the allocated memory block, which will be null if and only if mem_size is 0
mem_size
2.14
Allocates a block of memory from the slice allocator and copies
block_sizebytes into it frommem_block.mem_blockmust be non-nullifblock_sizeis non-zero.Since GLib 2.76 this always uses the system
malloc()implementation internally.