Share via


IDkmClrMetaDataProvider140.GetMetaDataBytesPtr Method

Definition

Get a pointer to the raw metadata bytes for the given module.

NOTE: This pointer value will become invalid if/when the module is a) unloaded or b) modified. To detect these scenarios: a) Add a data item to the module instance. The pointer will be invalid after the OnClose method is called (when the module instance is unloaded). b) Implement IDkmClrModuleModifiedNotification.

public:
 IntPtr GetMetaDataBytesPtr(Microsoft::VisualStudio::Debugger::Clr::DkmClrModuleInstance ^ clrModuleInstance, [Runtime::InteropServices::Out] System::UInt32 % size);
public IntPtr GetMetaDataBytesPtr (Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance clrModuleInstance, out uint size);
abstract member GetMetaDataBytesPtr : Microsoft.VisualStudio.Debugger.Clr.DkmClrModuleInstance * uint32 -> nativeint
Public Function GetMetaDataBytesPtr (clrModuleInstance As DkmClrModuleInstance, ByRef size As UInteger) As IntPtr

Parameters

clrModuleInstance
DkmClrModuleInstance

[In] 'DkmClrModuleInstance' is used for modules which are loaded into the Common Language Runtime.

size
UInt32

[Out] The size of the metadata buffer.

Returns

IntPtr

nativeint

[Out] A pointer to the metadata buffer.

Applies to