Table of Contents

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

self IObjectMarshaller

The marshaller service.

obj object

The 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

self IObjectMarshaller

The marshaller service.

vector BitVectorSpan

The vector.

Returns

T

The marshalled object.

Type Parameters

T

The 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

self IObjectMarshaller

The marshaller service.

handle ObjectHandle

The address.

Returns

T

The marshalled object.

Type Parameters

T

The type to marshal to.