Table of Contents

Class TypeMemoryLayoutDetection

Namespace
AsmResolver.DotNet.Memory
Assembly
AsmResolver.DotNet.dll

Provides extension methods to type references, definitions, and signatures for determining the memory layout of such a type at runtime.

public static class TypeMemoryLayoutDetection
Inheritance
TypeMemoryLayoutDetection
Inherited Members

Methods

GetImpliedMemoryLayout(ITypeDefOrRef, RuntimeContext, bool)

Determines the memory layout of the provided type signature at runtime.

public static TypeMemoryLayout GetImpliedMemoryLayout(this ITypeDefOrRef type, RuntimeContext context, bool is32Bit)

Parameters

type ITypeDefOrRef

The type.

context RuntimeContext

The runtime to assume when determining the layout.

is32Bit bool

Determines whether memory addresses are 32 bit or 64 bit wide.

Returns

TypeMemoryLayout

The implied memory layout of the type.

GetImpliedMemoryLayout(ITypeDescriptor, RuntimeContext, bool)

Determines the memory layout of the provided type signature at runtime.

public static TypeMemoryLayout GetImpliedMemoryLayout(this ITypeDescriptor type, RuntimeContext context, bool is32Bit)

Parameters

type ITypeDescriptor

The type.

context RuntimeContext

The runtime to assume when determining the layout.

is32Bit bool

Determines whether memory addresses are 32 bit or 64 bit wide.

Returns

TypeMemoryLayout

The implied memory layout of the type.

GetImpliedMemoryLayout(TypeSignature, RuntimeContext, bool)

Determines the memory layout of the provided type signature at runtime.

public static TypeMemoryLayout GetImpliedMemoryLayout(this TypeSignature type, RuntimeContext context, bool is32Bit)

Parameters

type TypeSignature

The type.

context RuntimeContext

The runtime to assume when determining the layout.

is32Bit bool

Determines whether memory addresses are 32 bit or 64 bit wide.

Returns

TypeMemoryLayout

The implied memory layout of the type.