View source code
Display the source code in dmd/root/rmem.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module dmd.root.rmem

Compiler implementation of the D programming language

http

//dlang.org

Documentation

https://dlang.org/phobos/dmd_root_rmem.html

Coverage

https://codecov.io/gh/dlang/dmd/src/master/src/dmd/root/rmem.d

Functions

NameDescription
arraydup(s) Makes a copy of the given array on newly allocated memory.
pureCalloc(nmemb, size) Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
pureFree(ptr) Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
pureMalloc(size) Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
pureRealloc(ptr, size) Pure variants of C's memory allocation functions malloc, calloc, and realloc and deallocation function free.
xarraydup(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.

Authors

Walter Bright, http://www.digitalmars.com

License

Boost License 1.0