Muokkaa

Jaa


IXCLRDataMethodInstance::GetILOffsetsByAddress Method

Gets the IL offset(s) corresponding to the given address for the method.

Note

This API was originally designed for internal use in the runtime. Although it is now supported for 3rd party use, we recommend working with ICorDebug and ICorProfiler APIs when possible.

Syntax

HRESULT GetILOffsetsByAddress(
    [in] CLRDATA_ADDRESS address
    [in] ULONG32 offsetsLen,
    [out] ULONG32 *offsetsNeeded,
    [out, size_is(offsetsLen)] ULONG32 ilOffsets[]
);

Parameters

address
[in] An address within the method for which to retrieve the corresponding IL offsets.

offsetsLen
[in] The size of the ilOffsets buffer

offsetsNeeded
[out] An indication of how many IL offsets are returned.

ilOffsets
[out] The IL offsets corresponding to the given address within the method.

Remarks

The provided method is part of the IXCLRDataMethodInstance interface and corresponds to the 13th slot of the virtual method table. Note that CLRDATA_ADDRESS is a 64-bit unsigned integer.

Requirements

Platforms: See System Requirements. Header: None Library: None .NET Framework Versions: Available since 4.7

See also