Table of Contents

Class StringAllocator

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

Provides a shim allocator that handles System.String constructors.

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

Properties

Instance

Gets the singleton instance of the StringAllocator class.

public static StringAllocator Instance { get; }

Property Value

StringAllocator

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