memutils.allocators

Utility functions for memory management

Public Imports

memutils.constants
public import memutils.constants;
core.sync.mutex
public import core.sync.mutex : Mutex;

Members

Aliases

CryptoSafeAllocator
alias CryptoSafeAllocator = DebugAllocator!(SecureAllocator!(AutoFreeListAllocator!(MallocAllocator)))
Undocumented in source.
CryptoSafeAllocator
alias CryptoSafeAllocator = SecureAllocator!LocklessAllocator
Undocumented in source.
LocklessAllocator
alias LocklessAllocator = DebugAllocator!(AutoFreeListAllocator!(MallocAllocator))
Undocumented in source.
LocklessAllocator
alias LocklessAllocator = AutoFreeListAllocator!(MallocAllocator)
Undocumented in source.
ProxyGCAllocator
alias ProxyGCAllocator = DebugAllocator!GCAllocator
Undocumented in source.
ProxyGCAllocator
alias ProxyGCAllocator = GCAllocator
Undocumented in source.

Functions

adjustPointerAlignment
void* adjustPointerAlignment(void* base, ubyte* misalign_)
Undocumented in source. Be warned that the author may not have intended to support it.
alignedSize
size_t alignedSize(size_t sz)
Undocumented in source. Be warned that the author may not have intended to support it.
ensureValidMemory
void ensureValidMemory(void[] mem)
Undocumented in source. Be warned that the author may not have intended to support it.
extractUnalignedPointer
void* extractUnalignedPointer(void* base)
Undocumented in source. Be warned that the author may not have intended to support it.
getAllocator
auto getAllocator(bool is_freeing)
Undocumented in source. Be warned that the author may not have intended to support it.
getAllocator
R getAllocator(bool is_freeing, bool kill_it)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

Allocator
interface Allocator
Undocumented in source.

Static variables

mtx
Mutex mtx;
Undocumented in source.

Templates

AllocSize
template AllocSize(T)
Undocumented in source.
RefTypeOf
template RefTypeOf(T)
Undocumented in source.

Meta

License

Subject to the terms of the MIT license.

Authors

Sönke Ludwig, Etienne Cimon