TypeScript API Documentation for GLIB
API Version: 2.0
Library Version: 2.88.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.41
Since 2.68
Allocates byte_size bytes of memory, and copies byte_size bytes into it from mem. If mem is NULL it returns NULL.
byte_size
mem
NULL
This replaces GLib.memdup, which was prone to integer overflows when converting the argument from a gsize to a guint.
gsize
guint
the memory to copy
the number of bytes to copy
a pointer to the newly-allocated copy of the memory
2.68
Allocates
byte_sizebytes of memory, and copiesbyte_sizebytes into it frommem. IfmemisNULLit returnsNULL.This replaces GLib.memdup, which was prone to integer overflows when converting the argument from a
gsizeto aguint.