| 20 | |
| 21 | public: |
| 22 | inline void* Allocate(size_t len) { |
| 23 | if (len > 1024 * 1024 * 1024) { |
| 24 | return nullptr; |
| 25 | } |
| 26 | |
| 27 | TAllocation* ret = new (len) TAllocation; |
| 28 | |
| 29 | Allocs_.PushBack(ret); |
| 30 | |
| 31 | return ret->AdditionalData(); |
| 32 | } |
| 33 | |
| 34 | inline void Deallocate(void* ptr) noexcept { |
| 35 | if (ptr) { |
no test coverage detected