Report a bug
If you spot a problem with this page, click here to create a GitHub 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
a local clone.
mir.internal.memory
License:
Authors:
Andrei Alexandrescu, Ilia Ki (Mir rework of original Phobos code)
- pure nothrow @nogc void*
malloc
(size_tsize
); - pure nothrow @nogc void*
calloc
(size_tnmemb
, size_tsize
); - pure nothrow @nogc void*
realloc
(void*ptr
, size_tsize
); - pure nothrow @nogc void
free
(void*ptr
); - @trusted void*
alignedAllocate
()(size_tbytes
, uinta
); - Uses posix_memalign on Posix and _aligned_malloc on Windows.
- alias
alignedFree
= free; - Calls free(b.ptr) on Posix and _aligned_free(b.ptr) on Windows.
Copyright © 2016-2023 by Ilya Yaroshenko | Page generated by
Ddoc on Mon Nov 6 15:24:34 2023