Class ObjectMarshallerExtensions
- Namespace
- Echo.Platforms.AsmResolver.Emulation
- Assembly
- Echo.Platforms.AsmResolver.dll
Provides extension methods to object marshalling services.
public static class ObjectMarshallerExtensions
- Inheritance
-
ObjectMarshallerExtensions
- Inherited Members
Methods
ToObjectHandle(IObjectMarshaller, object?)
Constructs an object handle that represents the provided object.
public static ObjectHandle ToObjectHandle(this IObjectMarshaller self, object? obj)
Parameters
selfIObjectMarshallerThe marshaller service.
objobjectThe object.
Returns
- ObjectHandle
The handle containing the address to the marshalled object.
ToObject<T>(IObjectMarshaller, BitVectorSpan)
Interprets the provided bit vector as an object of the provided type.
public static T? ToObject<T>(this IObjectMarshaller self, BitVectorSpan vector)
Parameters
selfIObjectMarshallerThe marshaller service.
vectorBitVectorSpanThe vector.
Returns
- T
The marshalled object.
Type Parameters
TThe type to marshal to.
ToObject<T>(IObjectMarshaller, ObjectHandle)
Interprets the provided object handle as an object of the provided type.
public static T? ToObject<T>(this IObjectMarshaller self, ObjectHandle handle)
Parameters
selfIObjectMarshallerThe marshaller service.
handleObjectHandleThe address.
Returns
- T
The marshalled object.
Type Parameters
TThe type to marshal to.