Table of Contents

Method TryAllocate

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

TryAllocate(AllocationRequest, out IAllocatedMemory)

Tries to allocate memory according to the provided AllocationRequest.
bool TryAllocate(AllocationRequest request, out IAllocatedMemory allocated)

Parameters

request AllocationRequest
The AllocationRequest specifying the requested properties of the allocation.
allocated IAllocatedMemory
The IAllocatedMemory instance representing the allocation.

Returns

bool
true if the allocator was able to allocate memory according to the request; false otherwise.