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
valueFactoryValueFactoryThe 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
valueStackSlotThe stack value.
targetTypeTypeSignatureThe 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
valueBitVectorThe value to marshal.
originalTypeTypeSignatureThe type to push the value as.
Returns
- StackSlot
The marshalled stack slot.