Class DefaultAllocators
- Namespace
- Echo.Platforms.AsmResolver.Emulation.Invocation
- Assembly
- Echo.Platforms.AsmResolver.dll
Provides methods for constructing object allocators using a set of default allocators implementations.
public static class DefaultAllocators
- Inheritance
-
DefaultAllocators
- Inherited Members
Properties
String
Gets an allocator that handles System.String constructors.
public static StringAllocator String { get; }
Property Value
UnknownAddress
Gets an object allocator that returns unknown addresses.
public static UnknownAddressAllocator UnknownAddress { get; }
Property Value
VirtualHeap
Gets an allocator that allocates objects in the virtualized heap of the underlying virtual machine.
public static VirtualHeapAllocator VirtualHeap { get; }
Property Value
Methods
WithFallback(IObjectAllocator, IObjectAllocator)
Chains the first object allocator with the provided object allocator in such a way that if the result of the first allocator is inconclusive, the second allocator will be used as a fallback allocator.
public static ObjectAllocatorChain WithFallback(this IObjectAllocator self, IObjectAllocator other)
Parameters
selfIObjectAllocatorThe first object allocator
otherIObjectAllocatorThe fallback object allocator
Returns
- ObjectAllocatorChain
The constructed allocator chain.