Same as TryAllocate() except returned memory is not aligned at all.
| 147 | |
| 148 | /// Same as TryAllocate() except returned memory is not aligned at all. |
| 149 | uint8_t* TryAllocateUnaligned(int64_t size) noexcept { |
| 150 | DFAKE_SCOPED_LOCK(mutex_); |
| 151 | // Call templated implementation directly so that it is inlined here and the |
| 152 | // alignment logic can be optimised out. |
| 153 | return Allocate<true>(size, 1); |
| 154 | } |
| 155 | |
| 156 | /// Returns 'byte_size' to the current chunk back to the mem pool. This can |
| 157 | /// only be used to return either all or part of the previous allocation returned |
no outgoing calls
no test coverage detected