Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 2.1 KB

cor-array-layout-structure.md

File metadata and controls

70 lines (55 loc) · 2.1 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: COR_ARRAY_LAYOUT Structure
COR_ARRAY_LAYOUT Structure
03/30/2017
COR_ARRAY_LAYOUT
mscordbi.dll
COM
COR_ARRAY_LAYOUT
COR_DEBUG_IL_TO_NATIVE_MAP structure [.NET Framework debugging]
aa20ac3d-6f60-4aa2-91c5-f3a86f82eba8
apiref

COR_ARRAY_LAYOUT Structure

Provides information about the layout of an array object in memory.

Syntax

typedef struct COR_ARRAY_LAYOUT {  
    COR_TYPEID componentID;  
    CorElementType componentType;  
    ULONG32 firstElementOffset;  
    ULONG32 elementSize;  
    ULONG32 countOffset;
    ULONG32 rankSize;
    ULONG32 numRanks;
    ULONG32 rankOffset;
} COR_ARRAY_LAYOUT;  

Members

Member Description
componentID The identifier of the type of objects that the array contains.
componentType A CorElementType enumeration value that indicates whether the component is a garbage collection reference, a value class, or a primitive.
firstElementOffset The offset to the first element in the array.
elementSize The size of each element.
countOffset The offset to the number of elements in the array.
rankSize The size of the rank, in bytes.
numRanks The number of ranks in the array.
rankOffset The offset at which the ranks start.

Remarks

The rankSize field specifies the size of a rank in a multi-dimensional array. It is accurate for single-dimensional arrays as well.

The value of numRanks is 1 for a single-dimensional array and N for a multi-dimensional array of N dimensions.

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: [!INCLUDEnet_current_v45plus]

See also