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, bool)

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

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

Parameters

type ITypeDefOrRef

The type.

is32Bit bool

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

Returns

TypeMemoryLayout

The implied memory layout of the type.

GetImpliedMemoryLayout(ITypeDescriptor, bool)

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

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

Parameters

type ITypeDescriptor

The type.

is32Bit bool

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

Returns

TypeMemoryLayout

The implied memory layout of the type.

GetImpliedMemoryLayout(TypeSignature, bool)

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

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

Parameters

type TypeSignature

The type.

is32Bit bool

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

Returns

TypeMemoryLayout

The implied memory layout of the type.