gfm.core.memory

This module provide support for aligned memory.

Members

Aliases

nogcComparisonFunction
alias nogcComparisonFunction(T) = int delegate(in T a, in T b) nothrow @(nogc)

Must return -1 if a < b 0 if a == b 1 if a > b

Functions

alignedFree
deprecated void alignedFree(void* aligned)

Frees aligned memory allocated by alignedMalloc or alignedRealloc. Functionally equivalent to Visual C++ _aligned_free.

alignedMalloc
deprecated void* alignedMalloc(size_t size, size_t alignment)

Allocates an aligned memory chunk. Functionally equivalent to Visual C++ _aligned_malloc.

alignedRealloc
deprecated void* alignedRealloc(void* aligned, size_t size, size_t alignment)

Reallocates an aligned memory chunk allocated by alignedMalloc or alignedRealloc. Functionally equivalent to Visual C++ _aligned_realloc.

assumeNoGC
deprecated auto assumeNoGC(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
assumeNothrow
deprecated auto assumeNothrow(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
assumeNothrowNoGC
deprecated auto assumeNothrowNoGC(T t)
Undocumented in source. Be warned that the author may not have intended to support it.
debugBreak
deprecated void debugBreak()

Inserts a breakpoint instruction. useful to trigger the debugger.

destroyFree
deprecated void destroyFree(T p)

Destroys and frees a class object created with mallocEmplace.

destroyFree
deprecated void destroyFree(T* p)

Destroys and frees a non-class object created with mallocEmplace.

mallocEmplace
deprecated auto mallocEmplace(Args args)

Allocates and construct a struct or class object.

nextAlignedPointer
deprecated void* nextAlignedPointer(void* start, size_t alignment)
nogc_qsort
deprecated void nogc_qsort(T[] array, nogcComparisonFunction!T comparison)

@nogc quicksort From the excellent: http://codereview.stackexchange.com/a/77788

stressGC
deprecated void stressGC()

Stresses the GC for a collect to occur, can be useful to reproduce bugs

Meta