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.58
Allocates a new block of data with reference counting semantics, and copies block_size bytes of mem_block into it.
block_size
mem_block
the number of bytes to copy, must be greater than 0
the memory to copy
a pointer to the allocated memory
2.58
Allocates a new block of data with reference counting semantics, and copies
block_sizebytes ofmem_blockinto it.