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
typeITypeDefOrRefThe type.
contextRuntimeContextThe runtime to assume when determining the layout.
is32BitboolDetermines 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
typeITypeDescriptorThe type.
contextRuntimeContextThe runtime to assume when determining the layout.
is32BitboolDetermines 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
typeTypeSignatureThe type.
contextRuntimeContextThe runtime to assume when determining the layout.
is32BitboolDetermines whether memory addresses are 32 bit or 64 bit wide.
Returns
- TypeMemoryLayout
The implied memory layout of the type.