mage.util.mem

Undocumented in source.

Members

Functions

GiB
auto GiB(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
KiB
auto KiB(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
MiB
auto MiB(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
TiB
auto TiB(size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
allocate
void[] allocate(Mallocator a, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
allocate
auto allocate(A allocator, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
allocate
void[] allocate(Block!N b, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
allocate
void[] allocate(BlockArray!N dyn, size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocate
void deallocate(Mallocator a, void[] mem)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocate
void deallocate(A allocator, T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
deallocate
void deallocate(Block!N b)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

mallocator
Mallocator mallocator;
Undocumented in source.

Structs

Block
struct Block(size_t N = 4.KiB)
Undocumented in source.
BlockArray
struct BlockArray(size_t N)

Uses a dynamic array of fixed sized blocks to allocate memory.

Mallocator
struct Mallocator
Undocumented in source.

Meta