Allocates memory for an array of elements, and clears the allocated memory.
provide a memory location unique to the current foreign resource instance
Deallocates a piece of memory.
Allocates a piece of memory.
Locks a mutex.
Unlocks a mutex.
Changes the size of an allocated piece of memory.
prevents an atom from being discarded by atom garbage collection even if not referenced by Prolog code
Makes a copy of a string in allocated memory.
enables an atom to be discarded during atom garbage collection if not referenced by Prolog code