Allocates byte_size bytes of memory, and copies byte_size bytes into it from mem. If mem is NULL it returns NULL.
This replaces funcGLib.memdup, which was prone to integer overflows when converting the argument from a gobject.types.size_t to a pango.types.ATTR_INDEX_TO_TEXT_END.
the memory to copy
the number of bytes to copy
a pointer to the newly-allocated copy of the memory
Allocates byte_size bytes of memory, and copies byte_size bytes into it from mem. If mem is NULL it returns NULL.
This replaces funcGLib.memdup, which was prone to integer overflows when converting the argument from a gobject.types.size_t to a pango.types.ATTR_INDEX_TO_TEXT_END.