dmd.root.rmem

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

Members

Functions

_d_allocclass
Object _d_allocclass(ClassInfo ci)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_allocmemory
void* _d_allocmemory(size_t m_size)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_newclass
Object _d_newclass(ClassInfo ci)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_newitemT
void* _d_newitemT(TypeInfo ti)
Undocumented in source. Be warned that the author may not have intended to support it.
_d_newitemU
void* _d_newitemU(TypeInfo ti)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
_d_newitemiT
void* _d_newitemiT(TypeInfo ti)
Undocumented in source. Be warned that the author may not have intended to support it.
allocmemory
void* allocmemory(size_t m_size)
Undocumented in source. Be warned that the author may not have intended to support it.
allocmemoryNoFree
void* allocmemoryNoFree(size_t m_size)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Manifest constants

CHUNK_SIZE
enum CHUNK_SIZE;
Undocumented in source.
OVERRIDE_MEMALLOC
enum OVERRIDE_MEMALLOC;
Undocumented in source.
OVERRIDE_MEMALLOC
enum OVERRIDE_MEMALLOC;
Undocumented in source.
OVERRIDE_MEMALLOC
enum OVERRIDE_MEMALLOC;
Undocumented in source.
OVERRIDE_MEMALLOC
enum OVERRIDE_MEMALLOC;
Undocumented in source.
OVERRIDE_MEMALLOC
enum OVERRIDE_MEMALLOC;
Undocumented in source.
isGCAvailable
enum isGCAvailable;
Undocumented in source.
isGCAvailable
enum isGCAvailable;
Undocumented in source.

Static variables

heapleft
size_t heapleft;
Undocumented in source.
heapp
void* heapp;
Undocumented in source.
mem
Mem mem;
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

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.
Pool
struct Pool(T)

Defines a pool for class objects. Objects can be fetched from the pool with make() and returned to the pool with dispose(). Using a reference that has been dispose()d has undefined behavior. make() may return memory that has been previously dispose()d.

Meta