MemoryHelper

Static helper that provides @nogc new and delete.

Members

Static functions

create
T create(Args args, string file, int line)

@nogc new for classes. Only classes that inherit from NoGCClass can be allocated with this function.

create
T* create(Args args, string file, int line)

@nogc new for structs.

dispose
void dispose(T instance, string file, int line)

@nogc delete for classes and interfaces.

dispose
void dispose(T* instance, string file, int line)

@nogc delete for structs.

dispose
void dispose(T instance, string file, int line)

@nogc delete for structs that have not been allocated with @nogc new.

Meta