| 52 | } |
| 53 | |
| 54 | LPTSTR SimpleHeap::Alloc(LPCTSTR aBuf, size_t aLength) |
| 55 | { |
| 56 | auto new_buf = strDup(aBuf, aLength); |
| 57 | if (!new_buf) |
| 58 | CriticalFail(); // This terminates the program. |
| 59 | return new_buf; // Always non-null. |
| 60 | } |
| 61 | |
| 62 | void* SimpleHeap::Malloc(size_t aSize) |
| 63 | // This could be made more memory efficient by searching old blocks for sufficient |
nothing calls this directly
no outgoing calls
no test coverage detected