Table of Contents

Interface IObjectMarshaller

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

Provides methods for marshalling managed objects into bit vectors and back.

public interface IObjectMarshaller
Extension Methods

Properties

Machine

Gets the machine the marshaller is targeting.

CilVirtualMachine Machine { get; }

Property Value

CilVirtualMachine

Methods

ToBitVector(object?)

Constructs a bit vector that represents the provided object.

BitVector ToBitVector(object? obj)

Parameters

obj object

The object.

Returns

BitVector

The bitvector containing the address to the object.

ToObject(BitVectorSpan, Type)

Interprets the provided bit vector as an object of the provided type.

object? ToObject(BitVectorSpan vector, Type targetType)

Parameters

vector BitVectorSpan

The vector.

targetType Type

The type to marshal to.

Returns

object

The marshalled object.