Table of Contents

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

StringAllocator

UnknownAddress

Gets an object allocator that returns unknown addresses.

public static UnknownAddressAllocator UnknownAddress { get; }

Property Value

UnknownAddressAllocator

VirtualHeap

Gets an allocator that allocates objects in the virtualized heap of the underlying virtual machine.

public static VirtualHeapAllocator VirtualHeap { get; }

Property Value

VirtualHeapAllocator

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

self IObjectAllocator

The first object allocator

other IObjectAllocator

The fallback object allocator

Returns

ObjectAllocatorChain

The constructed allocator chain.