Searched defs:GCAllocator (Results 1 – 2 of 2) sorted by relevance
13 struct GCAllocator struct17 version (StdUnittest) @system unittest { testAllocator!(() => GCAllocator.instance); } in version() argument23 enum uint alignment = platformAlignment;30 pure nothrow @trusted void[] allocate(size_t bytes) shared const in allocate()38 pure nothrow @trusted bool expand(ref void[] b, size_t delta) shared const in expand()61 pure nothrow @system bool reallocate(ref void[] b, size_t newSize) shared const in reallocate()79 Ternary resolveInternalPointer(const void* p, ref void[] result) shared const in resolveInternalPointer()89 bool deallocate(void[] b) shared const in deallocate()97 size_t goodAllocSize(size_t n) shared const in goodAllocSize()127 static shared const GCAllocator instance; argument[all …]
8 struct GCAllocator struct18 enum uint alignment = platformAlignment;25 pure nothrow @trusted void[] allocate(size_t bytes) shared in allocate()33 @system bool expand(ref void[] b, size_t delta) shared in expand()56 pure nothrow @system bool reallocate(ref void[] b, size_t newSize) shared in reallocate()74 Ternary resolveInternalPointer(const void* p, ref void[] result) shared in resolveInternalPointer()83 pure nothrow @system bool deallocate(void[] b) shared in deallocate()113 static shared GCAllocator instance; argument125 auto buffer = GCAllocator.instance.allocate(1024 * 1024 * 4); argument