Wolfgang Thallergcc 15.1.0ada185d1 year agoHistory
19 lines · 475 B · D
RawDownload
@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);    //...} 

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t