| 200 | } |
| 201 | |
| 202 | Result AwaitAllocator::createMalloc() |
| 203 | { |
| 204 | if (isOpen()) |
| 205 | { |
| 206 | return Result::Error("AwaitAllocator is already open"); |
| 207 | } |
| 208 | resetState(); |
| 209 | currentMode = AwaitAllocatorMode::Malloc; |
| 210 | return Result(true); |
| 211 | } |
| 212 | |
| 213 | Result AwaitAllocator::createPolymorphic(AwaitAllocatorInterface& customAllocatorInterface) |
| 214 | { |