Deprecatedmem: anythe memory to copy
Deprecatedbyte_size: numberthe number of bytes to copy
a pointer to the newly-allocated copy of the memory
since 2.68: Use GLib.memdup2 instead, as it accepts a gsize argument for byte_size, avoiding the possibility of overflow in a gsize → guint conversion
Allocates
byte_sizebytes of memory, and copiesbyte_sizebytes into it frommem. IfmemisNULLit returnsNULL.