dmd.root.rmem

Allocate memory using malloc or the GC depending on the configuration.

Members

Functions

arraydup
T[] arraydup(T[] s)

Makes a copy of the given array on newly allocated memory.

pureCalloc
void* pureCalloc(size_t nmemb, size_t size)
pureFree
void pureFree(void* ptr)

Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.

pureMalloc
void* pureMalloc(size_t size)
pureRealloc
void* pureRealloc(void* ptr, size_t size)

Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.

xarraydup
char[] xarraydup(const(char)[] s)

Makes a null-terminated copy of the given string on newly allocated memory. The null-terminator won't be part of the returned string slice. It will be at position n where n is the length of the input string.

Structs

Mem
struct Mem
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Meta