Table of Contents

Class CliMarshaller

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

Provides a mechanism for marshalling values in and out of the evaluation stack.

public class CliMarshaller
Inheritance
CliMarshaller
Inherited Members

Constructors

CliMarshaller(ValueFactory)

Creates a new instance of the CliMarshaller class.

public CliMarshaller(ValueFactory valueFactory)

Parameters

valueFactory ValueFactory

The factory that is used to create new objects with.

Methods

FromCliValue(StackSlot, TypeSignature)

Marshals the provided stack slot back to a normal bit vector that is to be used outside of the stack.

public BitVector FromCliValue(StackSlot value, TypeSignature targetType)

Parameters

value StackSlot

The stack value.

targetType TypeSignature

The type to marshal to.

Returns

BitVector

The marshalled value.

ToCliValue(BitVector, TypeSignature)

Marshals the provided value to a value that can be pushed onto the stack.

public StackSlot ToCliValue(BitVector value, TypeSignature originalType)

Parameters

value BitVector

The value to marshal.

originalType TypeSignature

The type to push the value as.

Returns

StackSlot

The marshalled stack slot.