Searched defs:NullAllocator (Results 1 – 2 of 2) sorted by relevance
9 struct NullAllocator struct18 enum uint alignment = 64 * 1024;23 void[] allocate(size_t) shared { return null; } in allocate()25 void[] alignedAllocate(size_t, uint) shared { return null; } in alignedAllocate()27 void[] allocateAll() shared { return null; } in allocateAll()33 bool expand(ref void[] b, size_t s) shared in expand()36 bool reallocate(ref void[] b, size_t) shared in reallocate()62 Returns the $(D shared) global instance of the $(D NullAllocator). argument64 static shared NullAllocator instance; argument
12 struct NullAllocator struct23 enum uint alignment = 64 * 1024;28 void[] allocate(size_t) shared { return null; } in allocate()30 void[] alignedAllocate(size_t, uint) shared { return null; } in alignedAllocate()32 void[] allocateAll() shared { return null; } in allocateAll()38 bool expand(ref void[] b, size_t s) shared in expand()41 bool reallocate(ref void[] b, size_t) shared in reallocate()67 Returns the `shared` global instance of the `NullAllocator`. argument69 static shared NullAllocator instance; argument