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
Methods
ToBitVector(object?)
Constructs a bit vector that represents the provided object.
BitVector ToBitVector(object? obj)
Parameters
objobjectThe 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
vectorBitVectorSpanThe vector.
targetTypeTypeThe type to marshal to.
Returns
- object
The marshalled object.