Table of Contents

Class VirtualHeapAllocator

Namespace
Echo.Platforms.AsmResolver.Emulation.Invocation
Assembly
Echo.Platforms.AsmResolver.dll

Provides an implementation of an allocator that allocates new objects in the virtualized heap of the underlying virtual machine.

public class VirtualHeapAllocator : IObjectAllocator
Inheritance
VirtualHeapAllocator
Implements
Inherited Members
Extension Methods

Properties

Instance

Gets the singleton instance of the VirtualHeapAllocator class.

public static VirtualHeapAllocator Instance { get; }

Property Value

VirtualHeapAllocator

Methods

Allocate(CilExecutionContext, IMethodDescriptor, IList<BitVector>)

Allocates a new object with the provided constructor and arguments.

public AllocationResult Allocate(CilExecutionContext context, IMethodDescriptor ctor, IList<BitVector> arguments)

Parameters

context CilExecutionContext

The execution context the call originates from.

ctor IMethodDescriptor

The constructor to invoke after allocation.

arguments IList<BitVector>

The arguments to invoke the constructor with.

Returns

AllocationResult

The result