blob: 76fb3ec253950e3eec91e2f998bca8fa7562479f [file] [log] [blame]
@nogc @system nothrow unittest
{
import std.experimental.allocator.mallocator;
auto buffer = Mallocator.instance.allocate(1024 * 1024 * 4);
scope(exit) Mallocator.instance.deallocate(buffer);
//...
}
pure @nogc @system nothrow unittest
{
import std.experimental.allocator.mallocator;
auto buffer = AlignedMallocator.instance.alignedAllocate(1024 * 1024 * 4,
128);
scope(exit) AlignedMallocator.instance.deallocate(buffer);
//...
}