Table of Contents

Method TryAllocateInRange

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

TryAllocateInRange(PositionedAllocationRequest, out IAllocatedMemory)

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

Parameters

request PositionedAllocationRequest
The PositionedAllocationRequest 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.